{"id":307,"date":"2021-05-22T17:27:43","date_gmt":"2021-05-22T11:57:43","guid":{"rendered":"https:\/\/www.debugsolution.in\/blog\/?p=307"},"modified":"2023-06-05T15:50:27","modified_gmt":"2023-06-05T10:20:27","slug":"php-8-0-what-is-new-in-the-major-update","status":"publish","type":"post","link":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/","title":{"rendered":"PHP 8.0 &#8211; What is new in the major update?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">PHP (Hypertext Preprocessor) is a general-purpose server scripting language (embedded in HTML) suitable for web development. <strong>PHP originally was called Personal Home Page<\/strong>, but now has a recursive initialization Hypertext Preprocessor. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>PHP powers everything, from simple blogs to popular websites. It is fast and flexible, making it the best match to build interactive and dynamic web pages. It is a FREE, efficient, and widely used alternative to competitors like Microsoft\u2019s ASP.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In 2015, the new PHP 7 version was developed, which had four more sub-upgrades till <strong>PHP 7.4. <\/strong>Overcoming the flaws and bringing many long-awaited features recently, PHP has released the eleventh testing release of<a href=\"https:\/\/stitcher.io\/blog\/new-in-php-8\" target=\"_blank\" rel=\"noreferrer noopener\"> <strong>PHP 8.0<\/strong><\/a><strong>,<\/strong> including some great varieties of effective changes and lean language improvements. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As PHP 8.0 is here, several changes can be seen in terms of performance, features, etc. <strong>The most discussed feature of PHP 8.0 is PHP JIT (Just in Time Compiler). JIT is set to increase the speed of an application by the technique used to handle the compilation of the scripts.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The upgrade to PHP 8.0 shouldn&#8217;t be that hard if you have kept your code up to date with the latest releases as most changes were deprecated before in the PHP 7.* versions. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The new PHP 8.0 also brings in some more exciting features such as Named Arguments, Attributes, Constructor property promotion, Union Types, Match expression, Just-In-Time compilation and more.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Do You Need PHP 8.0?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The latest benchmark tests by Phoronix show PHP 8.0 is performing 10% better than its predecessors. This data suggests a promising future for PHP-based websites and applications.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img width=\"640\" height=\"260\" data-public-id=\"ds_blog\/Phoronix-show-PHP-8.0\/Phoronix-show-PHP-8.0.png\" data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/w_640,h_260,c_scale\/f_auto,q_auto\/v1667710996\/ds_blog\/Phoronix-show-PHP-8.0\/Phoronix-show-PHP-8.0.png?_i=AA\" alt=\"\" class=\"wp-post-307 wp-image-308\" data-format=\"png\" data-transformations=\"f_auto,q_auto\" data-version=\"1667710996\" data-seo=\"1\" data-responsive=\"1\" srcset=\"https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/w_640,h_260,c_scale\/f_auto,q_auto\/v1667710996\/ds_blog\/Phoronix-show-PHP-8.0\/Phoronix-show-PHP-8.0.png?_i=AA 1480w, https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/w_1448,h_588,c_scale\/f_auto,q_auto\/v1667710996\/ds_blog\/Phoronix-show-PHP-8.0\/Phoronix-show-PHP-8.0.png?_i=AA 1448w, https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/w_1248,h_507,c_scale\/f_auto,q_auto\/v1667710996\/ds_blog\/Phoronix-show-PHP-8.0\/Phoronix-show-PHP-8.0.png?_i=AA 1248w, https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/w_1048,h_426,c_scale\/f_auto,q_auto\/v1667710996\/ds_blog\/Phoronix-show-PHP-8.0\/Phoronix-show-PHP-8.0.png?_i=AA 1048w, https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/w_848,h_344,c_scale\/f_auto,q_auto\/v1667710996\/ds_blog\/Phoronix-show-PHP-8.0\/Phoronix-show-PHP-8.0.png?_i=AA 848w, https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/w_648,h_263,c_scale\/f_auto,q_auto\/v1667710996\/ds_blog\/Phoronix-show-PHP-8.0\/Phoronix-show-PHP-8.0.png?_i=AA 648w, https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/w_448,h_182,c_scale\/f_auto,q_auto\/v1667710996\/ds_blog\/Phoronix-show-PHP-8.0\/Phoronix-show-PHP-8.0.png?_i=AA 448w, https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/w_248,h_100,c_scale\/f_auto,q_auto\/v1667710996\/ds_blog\/Phoronix-show-PHP-8.0\/Phoronix-show-PHP-8.0.png?_i=AA 248w\" sizes=\"(max-width: 1480px) 100vw, 1480px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Better yet, the test was not even conducted using the <a href=\"https:\/\/www.ibm.com\/docs\/en\/sdk-java-technology\/8?topic=reference-jit-compiler#:~:text=The%20Just%2DIn%2DTime%20(,machine%20code%20at%20run%20time.\" target=\"_blank\" rel=\"noreferrer noopener\">JIT compiler<\/a>, a new optimization feature introduced with PHP 8.0. Developers can expect a much faster performance if it is enabled.<br>Furthermore, the version implements new features to make coding much quicker and cleaner, reducing plenty of <a href=\"https:\/\/www.merriam-webster.com\/dictionary\/boilerplate\" target=\"_blank\" rel=\"noreferrer noopener\">boilerplate<\/a> and redundant code.<br>Since this is a version update, your website will likely experience changes that might break it if you transition to PHP 8.0 without making any prior modifications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Major new features of PHP 8<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Named Parameters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PHP 8.0 allows named parameter function in addition to traditional positional parameters. The function given below names the part of the public API. It works as non-standardized DocBlock @no-named-arguments and doesn\u2019t provide backwards compatibility.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>str_contains (needle: \u2018Bar\u2019, haystack: \u2018Foobar\u2019);<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Attributes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In here, the attributes declare meta-data for functions, parameters, classes and properties. The attributes here map to PHP class names fetch programmatically with PHP reflection API. The attributes make it easier and performant to declare attributes. It stores them in DocBlock comments and parses the string to infer them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">[Custom Attribute]<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>class Foo {<br>#[Another Attribute(42)]<br>Public function bar (): void {}<br>}<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Constructor Properties<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The new syntax used to declare class property from the class constructor with construct magic method. The constructor PHP 8.0 supports the claiming the visibility like public, private or protected and type. The registered properties add classes with the same visibility and type declared in the constructor. In the below function, the backwards-incompatible feature helps to reduce boilerplate code when declaring value-object classes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>class User {<br>public function __construct (private string $name) {}<br>}<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Just-in-time Compilation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PHP Opcache supports JIT which compiles and caches native instructions. There not much noticeable difference in IO-bound web applications that provides a performance boost for CPU-heavy applications. As JIT is still new and comes with bug fixes, it\u2019s late as a day before PHP 8 released. It makes debugging and profiling more challenging by adding an extra layer to it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enabling JIT in php.ini<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>opcache.enable=1<br>opcache.jit_buffer_size=100M<br>opcache.jit=tracing<br>Union Types<\/strong><br>The union type extends type declarations using return types, class properties, and parameters to declare more than one type. It supports false as its special type with prevalent legacy code without using exceptions.<br>function parse_value(string|int|float): string|null {}<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Match Expressions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It works similar to switch blocks, but match blocks provide a type-safe comparison with supporting return value. It supports multiple matching values that guaranteed that at least one branch matched with ensuring all cases accounted for. The switch blocks convert match blocks, requiring backward compatibility, multiple statements, and fall-through functionality that fits the switch statements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$response = match(\u2018test\u2019) {<br>\u2018test\u2019 =&gt; $this-&gt;sendTestAlert(),<br>\u2018send\u2019 =&gt; $this-&gt;sendNuclearAlert(),<br>};<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Null-Safe Operators<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s an operator that provides safety method chaining to return a null value. There\u2019s an operator?-&gt; that shows null operator short-circuits where the rest of the expression encounters a null value. Later it immediately returns null without causing any errors.<br><strong>return $user-&gt;get Address()?-&gt;get Country()?-&gt;isoCode;<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Weak Maps<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s a feature that allows to store and associate arbitrary values for object keys without preventing the garbage collector. It is used for clearing the object when it falls out of scope. Weak map works similar to Spl object storage and allows storage of arbitrary values. It doesn\u2019t prevent the object from being garbage collected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The example below, sourced from the RFC, which shows how weak maps will look like:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>$map = new WeakMap;<br>$obj = new stdClass;<br>$map[$obj] = 42;<br>var_dump($map);<br>\/\/ object(WeakMap)#1 (1) {<br>\/\/ [0]=&gt;<br>\/\/ array(2) {<br>\/\/ [&#8220;key&#8221;]=&gt;<br>\/\/ object(stdClass)#2 (0) {<br>\/\/ }<br>\/\/ [&#8220;value&#8221;]=&gt;<br>\/\/ int(42)<br>\/\/ }<br>\/\/ }<br>\/\/ The object is destroyed here, and the key is automatically removed from the weak map.<br>unset($obj);<br>var_dump($map);<br>\/\/ object(WeakMap)#1 (0) {<br>\/\/ }<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This feature will be more beneficial for long-running applications, particularly if you want to prevent memory leaks and implement caching.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Summary of new PHP 8 released Functions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u2022 str_starts_with and str_ends_with<br>It\u2019s a function that helps check if the string starts or ends with an explicit line.<br>\u2022 str_contains()<br>It helps in doing a background check of whether the returned value is different from FALSE value and benefits to search needle within the string.<br>\u2022 get_debug_type<br>It works similar to the get type function and reverts the information than the latter one.<br>\u2022 get_resource_id<br>Using this, one can get a resource Id without any hustle.<br>\u2022 preg_last_error_msg<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The function helps for manually checking errors and messages for a faster check process.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Further improvements<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Here is the list of some additional approved but still in draft improvements of PHP 8.0:<\/strong><br>\u2022 <strong>Stringable interface:<\/strong> It is automatically added to classes implementing _to_string () method. The actual goal here is to use the stringable union type.<br>\u2022 <strong>Static return type:<\/strong> It is the usage of static as return type next to self and parent type.<br><strong>\u2022 New living standard APIs in ext\/dom:<\/strong> It proposes to implement the current DOM living standard to the PHP DOM extension by introducing public properties and interfaces.<br><strong>\u2022 Variable Syntax tweaks:<\/strong> It resolves some residual inconsistencies in PHP\u2019s variable syntax.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">With Winding-up<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here in this blog post, we have covered the most exciting optimization and features added in PHP 8 release. The most awaited feature is the Just in Time compiler were there so much more added to it. If you\u2019re looking for PHP web development or PHP web application development, then explore our services. Send us your inquiry and get a customized quote based on your business needs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Aslo Read &#8211; <\/em><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.debugsolution.in\/blog\/development\/explore-the-future-of-programming-with-ai\/\" target=\"_blank\" rel=\"noreferrer noopener\">Explore The Future Of Programming With AI&gt;&gt;<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.debugsolution.in\/blog\/technology\/how-to-create-a-sql-query-using-ai\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Create A SQL Query Using AI?&gt;&gt;<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.debugsolution.in\/blog\/news-offers\/metas-new-ai-language-model-llama-revolutionizing-natural-language-processing\/\" target=\"_blank\" rel=\"noreferrer noopener\">Meta\u2019s New AI Language Model \u2013 LLaMA&gt;&gt;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP (Hypertext Preprocessor) is a general-purpose server scripting language (embedded in HTML) suitable for web development. PHP originally was called Personal Home Page, but now has a recursive initialization Hypertext Preprocessor. PHP powers everything, from simple blogs to popular websites. It is fast and flexible, making it the best match to build interactive and dynamic [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_cloudinary_featured_overwrite":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18,16],"tags":[543,542,31,32,547,546,539,540,544,545,541],"class_list":["post-307","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-technology","tag-businesswithphp","tag-explorephp8","tag-php-8","tag-php-8-attributes","tag-php8enhancements","tag-php8exploration","tag-php8release","tag-php8upgrade","tag-phpapplications","tag-phpdevelopment","tag-phpwebdevelopment"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP 8.0 - What is new in the major update? - Debug Solution<\/title>\n<meta name=\"description\" content=\"Here new release of PHP 8.O versions. Read and explore the PHP web application development on your business needs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP 8.0 - What is new in the major update? - Debug Solution\" \/>\n<meta property=\"og:description\" content=\"Here new release of PHP 8.O versions. Read and explore the PHP web application development on your business needs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/\" \/>\n<meta property=\"og:site_name\" content=\"Debug Solution Official Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/debugsolution\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-22T11:57:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-05T10:20:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/f_auto,q_auto\/v1667710986\/ds_blog\/PHP-8.0\/PHP-8.0.png?_i=AA\" \/>\n\t<meta property=\"og:image:width\" content=\"714\" \/>\n\t<meta property=\"og:image:height\" content=\"391\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Singhal Vaibhav\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@debugsolution\" \/>\n<meta name=\"twitter:site\" content=\"@debugsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Singhal Vaibhav\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/\"},\"author\":{\"name\":\"Singhal Vaibhav\",\"@id\":\"https:\/\/www.debugsolution.in\/blog\/#\/schema\/person\/2c10c5a6499e20a9d65a7c2072df011e\"},\"headline\":\"PHP 8.0 &#8211; What is new in the major update?\",\"datePublished\":\"2021-05-22T11:57:43+00:00\",\"dateModified\":\"2023-06-05T10:20:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/\"},\"wordCount\":1203,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.debugsolution.in\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/PHP-8.0.png?fit=714%2C391&ssl=1\",\"keywords\":[\"BusinessWithPHP\",\"ExplorePHP8\",\"PHP 8\",\"PHP 8 Attributes\",\"PHP8Enhancements\",\"PHP8Exploration\",\"PHP8Release\",\"PHP8Upgrade\",\"PHPApplications\",\"PHPDevelopment\",\"PHPWebDevelopment\"],\"articleSection\":[\"Development\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/\",\"url\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/\",\"name\":\"PHP 8.0 - What is new in the major update? - Debug Solution\",\"isPartOf\":{\"@id\":\"https:\/\/www.debugsolution.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/PHP-8.0.png?fit=714%2C391&ssl=1\",\"datePublished\":\"2021-05-22T11:57:43+00:00\",\"dateModified\":\"2023-06-05T10:20:27+00:00\",\"description\":\"Here new release of PHP 8.O versions. Read and explore the PHP web application development on your business needs.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/PHP-8.0.png?fit=714%2C391&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/PHP-8.0.png?fit=714%2C391&ssl=1\",\"width\":714,\"height\":391,\"caption\":\"PHP-8.0\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.debugsolution.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP 8.0 &#8211; What is new in the major update?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.debugsolution.in\/blog\/#website\",\"url\":\"https:\/\/www.debugsolution.in\/blog\/\",\"name\":\"Debug Solution Official Blog\",\"description\":\"Digital Solution\",\"publisher\":{\"@id\":\"https:\/\/www.debugsolution.in\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.debugsolution.in\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.debugsolution.in\/blog\/#organization\",\"name\":\"Debug Solution\",\"url\":\"https:\/\/www.debugsolution.in\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.debugsolution.in\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/DEBUG-Solution.png?fit=775%2C775&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/DEBUG-Solution.png?fit=775%2C775&ssl=1\",\"width\":775,\"height\":775,\"caption\":\"Debug Solution\"},\"image\":{\"@id\":\"https:\/\/www.debugsolution.in\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/debugsolution\",\"https:\/\/x.com\/debugsolution\",\"https:\/\/www.instagram.com\/debugsolution\/\",\"https:\/\/www.linkedin.com\/company\/debug-solution\",\"https:\/\/www.youtube.com\/channel\/UCVex2I2NChxktAk__MyhqvA\",\"https:\/\/api.whatsapp.com\/send?phone=919897535477&amp;amp;amp;amp;amp;amp;amp;amp;text\",\"https:\/\/join.skype.com\/invite\/vH9lVmxhMa3a\",\"https:\/\/g.page\/debugSolution?share\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.debugsolution.in\/blog\/#\/schema\/person\/2c10c5a6499e20a9d65a7c2072df011e\",\"name\":\"Singhal Vaibhav\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.debugsolution.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f33084eb51967536e6f33f58f27320b3596cc0416746fbaaf776553f0a1ee4f5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f33084eb51967536e6f33f58f27320b3596cc0416746fbaaf776553f0a1ee4f5?s=96&d=mm&r=g\",\"caption\":\"Singhal Vaibhav\"},\"description\":\"I am Vaibhav Singhal, a full-stack developer with over 12 years of experience in the technical field. My passion for developing and designing web and mobile applications. As a full-stack developer, I have a broad range of technical skills, including proficiency in various programming languages, databases, and development frameworks. I enjoy the challenge of taking a concept or idea and turning it into a fully functional and visually appealing application that meets the needs of the end-users. I am always looking for opportunities to expand my skillset and stay up-to-date with the latest industry trends and technologies.\",\"sameAs\":[\"https:\/\/www.debugsolution.in\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP 8.0 - What is new in the major update? - Debug Solution","description":"Here new release of PHP 8.O versions. Read and explore the PHP web application development on your business needs.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/","og_locale":"en_US","og_type":"article","og_title":"PHP 8.0 - What is new in the major update? - Debug Solution","og_description":"Here new release of PHP 8.O versions. Read and explore the PHP web application development on your business needs.","og_url":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/","og_site_name":"Debug Solution Official Blog","article_publisher":"https:\/\/www.facebook.com\/debugsolution","article_published_time":"2021-05-22T11:57:43+00:00","article_modified_time":"2023-06-05T10:20:27+00:00","og_image":[{"width":714,"height":391,"url":"https:\/\/res.cloudinary.com\/dx2hghbsw\/images\/f_auto,q_auto\/v1667710986\/ds_blog\/PHP-8.0\/PHP-8.0.png?_i=AA","type":"image\/png"}],"author":"Singhal Vaibhav","twitter_card":"summary_large_image","twitter_creator":"@debugsolution","twitter_site":"@debugsolution","twitter_misc":{"Written by":"Singhal Vaibhav","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#article","isPartOf":{"@id":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/"},"author":{"name":"Singhal Vaibhav","@id":"https:\/\/www.debugsolution.in\/blog\/#\/schema\/person\/2c10c5a6499e20a9d65a7c2072df011e"},"headline":"PHP 8.0 &#8211; What is new in the major update?","datePublished":"2021-05-22T11:57:43+00:00","dateModified":"2023-06-05T10:20:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/"},"wordCount":1203,"commentCount":0,"publisher":{"@id":"https:\/\/www.debugsolution.in\/blog\/#organization"},"image":{"@id":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/PHP-8.0.png?fit=714%2C391&ssl=1","keywords":["BusinessWithPHP","ExplorePHP8","PHP 8","PHP 8 Attributes","PHP8Enhancements","PHP8Exploration","PHP8Release","PHP8Upgrade","PHPApplications","PHPDevelopment","PHPWebDevelopment"],"articleSection":["Development","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/","url":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/","name":"PHP 8.0 - What is new in the major update? - Debug Solution","isPartOf":{"@id":"https:\/\/www.debugsolution.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#primaryimage"},"image":{"@id":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/PHP-8.0.png?fit=714%2C391&ssl=1","datePublished":"2021-05-22T11:57:43+00:00","dateModified":"2023-06-05T10:20:27+00:00","description":"Here new release of PHP 8.O versions. Read and explore the PHP web application development on your business needs.","breadcrumb":{"@id":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#primaryimage","url":"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/PHP-8.0.png?fit=714%2C391&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/PHP-8.0.png?fit=714%2C391&ssl=1","width":714,"height":391,"caption":"PHP-8.0"},{"@type":"BreadcrumbList","@id":"https:\/\/www.debugsolution.in\/blog\/technology\/php-8-0-what-is-new-in-the-major-update\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.debugsolution.in\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP 8.0 &#8211; What is new in the major update?"}]},{"@type":"WebSite","@id":"https:\/\/www.debugsolution.in\/blog\/#website","url":"https:\/\/www.debugsolution.in\/blog\/","name":"Debug Solution Official Blog","description":"Digital Solution","publisher":{"@id":"https:\/\/www.debugsolution.in\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.debugsolution.in\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.debugsolution.in\/blog\/#organization","name":"Debug Solution","url":"https:\/\/www.debugsolution.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.debugsolution.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/DEBUG-Solution.png?fit=775%2C775&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/DEBUG-Solution.png?fit=775%2C775&ssl=1","width":775,"height":775,"caption":"Debug Solution"},"image":{"@id":"https:\/\/www.debugsolution.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/debugsolution","https:\/\/x.com\/debugsolution","https:\/\/www.instagram.com\/debugsolution\/","https:\/\/www.linkedin.com\/company\/debug-solution","https:\/\/www.youtube.com\/channel\/UCVex2I2NChxktAk__MyhqvA","https:\/\/api.whatsapp.com\/send?phone=919897535477&amp;amp;amp;amp;amp;amp;amp;amp;text","https:\/\/join.skype.com\/invite\/vH9lVmxhMa3a","https:\/\/g.page\/debugSolution?share"]},{"@type":"Person","@id":"https:\/\/www.debugsolution.in\/blog\/#\/schema\/person\/2c10c5a6499e20a9d65a7c2072df011e","name":"Singhal Vaibhav","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.debugsolution.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f33084eb51967536e6f33f58f27320b3596cc0416746fbaaf776553f0a1ee4f5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f33084eb51967536e6f33f58f27320b3596cc0416746fbaaf776553f0a1ee4f5?s=96&d=mm&r=g","caption":"Singhal Vaibhav"},"description":"I am Vaibhav Singhal, a full-stack developer with over 12 years of experience in the technical field. My passion for developing and designing web and mobile applications. As a full-stack developer, I have a broad range of technical skills, including proficiency in various programming languages, databases, and development frameworks. I enjoy the challenge of taking a concept or idea and turning it into a fully functional and visually appealing application that meets the needs of the end-users. I am always looking for opportunities to expand my skillset and stay up-to-date with the latest industry trends and technologies.","sameAs":["https:\/\/www.debugsolution.in"]}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.debugsolution.in\/blog\/wp-content\/uploads\/2021\/05\/PHP-8.0.png?fit=714%2C391&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/comments?post=307"}],"version-history":[{"count":3,"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/posts\/307\/revisions"}],"predecessor-version":[{"id":1240,"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/posts\/307\/revisions\/1240"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/media\/317"}],"wp:attachment":[{"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/media?parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/categories?post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.debugsolution.in\/blog\/wp-json\/wp\/v2\/tags?post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}