{"id":2493,"date":"2020-12-28T10:29:21","date_gmt":"2020-12-28T10:29:21","guid":{"rendered":"https:\/\/mobilecoderz.com\/blog\/?p=2493"},"modified":"2023-07-24T10:49:58","modified_gmt":"2023-07-24T05:19:58","slug":"php-8-what-are-the-new-features-in-new-version-of-php","status":"publish","type":"post","link":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/","title":{"rendered":"PHP 8: What are the new features In New Version of PHP?"},"content":{"rendered":"<p>The latest version of PHP8 which was released on November 26, 2020, comes packed with some of the most innovative features and performance improvements. Touted to be a major update to the PHP language or an improved PHP version, PHP 8 has surfaced with distinct features and optimizations in a new avatar, such as \u2013<\/p>\n<p><strong>Named arguments \u2013<\/strong> Optional parameters are skippable over the specific ones.<br \/>\n<strong>Union types \u2013<\/strong> It allows runtime-validated native union type declarations.<br \/>\n<strong>Attributes<\/strong> \u2013 It mandates PHP&#8217;s native syntax instead of PHPDoc annotations.<br \/>\n<strong>Constructor property promotion<\/strong> \u2013 No heavy boilerplate code for initializing properties.<br \/>\n<strong>Match expression<\/strong> \u2013 It allows strict comparison and the result of an expression to be stored in a variable.<\/p>\n<p><strong>Nullsafe operator<\/strong> \u2013 With new Nullsafe operator, users can avoid null check conditions while choosing a chain of calls.<br \/>\n<strong>JIT (Just-In-Time compilation)<\/strong> \u2013 With new Tracing JIT compilation engine, synthetic benchmarks will be improved 3-times better.<br \/>\n<strong>Improvements in error handling, type system and consistency<\/strong> \u2013 It allows correction to the signatures of magic methods, among many other features.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#Now_We_Are_Going_To_Elaborate_The_Highlighted_Features_Of_PHP_80_Which_Are_As_Follows_%E2%80%93\" >Now We Are Going To Elaborate The Highlighted Features Of PHP 8.0 Which Are As Follows \u2013<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#Final_Thoughts\" >Final Thoughts<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Now_We_Are_Going_To_Elaborate_The_Highlighted_Features_Of_PHP_80_Which_Are_As_Follows_%E2%80%93\"><\/span>Now We Are Going To Elaborate The Highlighted Features Of PHP 8.0 Which Are As Follows \u2013<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span style=\"text-decoration: underline;\">PHP 8 Named arguments<\/span><\/h3>\n<p>Under the new feature, arguments can be passed to a parameter-named function, instead of the parameter position. As a result, the arguments passed thus can be termed as self-documenting qualifying the arguments to arbitrarily skip the default values.<\/p>\n<h4>Benefits of named arguments in new Php version \u2013<\/h4>\n<ul>\n<li>Users are now at the leeway to directly overwrite specifying all the defaults until one of them deems it necessary to be changed. So, if there are certain defaults you wish to overwrite, named arguments can allow that.<\/li>\n<li>It allows code self-documenting even though programmers don\u2019t wish to overwrite the optional arguments.<\/li>\n<li>PHP 8 simplifies declaring classes for value objects.<\/li>\n<li>It allows a solution for side-effects due to object initialization problems in a way not affecting the prevailing language semantics.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/mobilecoderz.com\/ecommerce-web-development\/?utm_source=php8_2493_arushi&amp;utm_medium=banner_ecommerce\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2497 size-full lazyload\" data-src=\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Ecommerce-Web-Development_.png\" alt=\"php-new-version\" width=\"1024\" height=\"299\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/299;\" \/><noscript><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2497 size-full\" src=\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Ecommerce-Web-Development_.png\" alt=\"php-new-version\" width=\"1024\" height=\"299\" \/><\/noscript><\/a><\/p>\n<h3><span style=\"text-decoration: underline;\">PHP 8 Attributes<\/span><\/h3>\n<p>The Attributes v2 RFC is precedent to doc-comments that allowed to add metadata to declarations of classes. Now, with the fresh introduction, PHP can be termed as a structured and syntactic metadata. Users can add it to the declaration of classes and functions etc.<\/p>\n<h4>Pros of Attributes:<\/h4>\n<ul>\n<li>It resolves the name of an attribute against imported symbols during compilation. PHP 8 prevents accidental reuse of namespace attributes by different applications.<\/li>\n<li>It allows programmers to add meta data to classes, without having to resolve the DocBlock.<\/li>\n<li>Users can apply structured metadata with the native syntax of PHP without PHPDoc annotations.<\/li>\n<li>Programmers can add attributes after or before a dock-block comment.<\/li>\n<li>The number of attributes for a single declaration could be more than one, and vice versa.<\/li>\n<\/ul>\n<h3><span style=\"text-decoration: underline;\">PHP 8 Constructor property promotion<\/span><\/h3>\n<p>The concise syntax proposed by PHP 8 constructor property promotion is insidious of simplification related to the property declaration which induces shorter and less redundant version of the process (property declaration). One of the most salient features of this PHP8 classification is that it allows programmers to define and initialize properties using less boilerplate code.<\/p>\n<h4>Pros of Constructor property promotion &#8211;<\/h4>\n<ul>\n<li>It allows for an improved process regarding object ergonomics in PHP.<\/li>\n<li>It simplifies the property declaration and helps programmers to avoid making the process more redundant like several times repetitions.<\/li>\n<\/ul>\n<h4>Things constructor property promotion don\u2019t allow \u2013<\/h4>\n<ul>\n<li>Promoted properties are not allowed in abstract classes and interfaces.<\/li>\n<li>It does not allow implicit behavior concerning nullability.<\/li>\n<li>It does not allow callable type, as it is not a supported type for properties.<\/li>\n<li>Constructor properties keyworded with \u2018Var\u2019 are not allowed.<\/li>\n<li>Combination of both promoted properties and explicit properties should not be declared in duplication.<\/li>\n<\/ul>\n<h3><span style=\"text-decoration: underline;\">PHP 8 Union types<\/span><\/h3>\n<p>The values accepted by Union types are of variant segments. At present, PHP lacks supportive provision meted out to union types with syntax-exception (? Type) and exception to (iterable) type. Prior to PHP 8.0 was brought to existence, union types supported specifications in phpdoc annotations.<\/p>\n<h4>Pros of Union Types:<\/h4>\n<ul>\n<li>The language supported by union types expedites moving more type information from phpdoc into function signatures.<\/li>\n<li>A \u201cunion type\u201d does not refuse the values of multiple different types.<br \/>\nThe application of union types, both in PHP&#8217;s standard library and in the open-source ecosystem is pervasive.<\/li>\n<li>When supporting union types in the language, one of the benefits it brings forth is early detection of mistakes when types are enforced. The enforced types are less vulnerable to getting defunct.<\/li>\n<li>Union types can find their presence in every position where types are presently accepted.<\/li>\n<li>PHP-supported all types are supported by union types.<\/li>\n<\/ul>\n<h3><span style=\"text-decoration: underline;\">PHP 8 Match expression<\/span><\/h3>\n<p>The match expression bears similarity to Switch but features safer semantics. It also makes easy for programmers to return values.<\/p>\n<h4>Pros of Match expression \u2013<\/h4>\n<ul>\n<li>The biggest benefit of using match expression is that unlike switch, it doesn\u2019t compare values loosely.<\/li>\n<li>It allows more concise syntax, thanks to its multiple comma-separated expressions.<\/li>\n<li>Being an expression, match allows its results to be stored in a variable.<br \/>\nIt follows strict comparisons, irrespective of strict_types.<\/li>\n<li>Unlike switch experiencing fallthrough, match expression doesn\u2019t encounter such problem, as it adds an implicit break after every arm.<\/li>\n<li>It allows an early detection of mistakes thus preventing program crashes.<\/li>\n<\/ul>\n<h4><a href=\"https:\/\/mobilecoderz.com\/wearable-app-development\/?utm_source=php8_2493_arushi&amp;utm_medium=banner_wearableapp\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2498 size-full aligncenter lazyload\" data-src=\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Wearable-App-Development-1024x299-1.png\" alt=\"php-new-version\" width=\"1024\" height=\"299\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/299;\" \/><noscript><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2498 size-full aligncenter\" src=\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Wearable-App-Development-1024x299-1.png\" alt=\"php-new-version\" width=\"1024\" height=\"299\" \/><\/noscript><\/a><\/h4>\n<h3><span style=\"text-decoration: underline;\">PHP 8 Nullsafe operator<\/span><\/h3>\n<p>In <a href=\"https:\/\/en.wikipedia.org\/wiki\/Short-circuit_evaluation\" target=\"_blank\" rel=\"noopener noreferrer\">short-circuit evaluation<\/a> the evaluation of second operator is initialized after the first one fails to evaluate to null. On the other hand, if the null is evaluated by an operator in a chain, it triggers failure of the execution of entire chain and evaluates to null.<\/p>\n<h4>Pros of Nullsafe operator<\/h4>\n<ul>\n<li>The new Nullsafe operator allows application of a chain of calls, thus eliminating the need for null check conditions.<\/li>\n<li>It aborts an entire chain\u2019s execution right after the evaluation of a single element in the chain fails. It also prompts an entire chain evaluates to null.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span><span style=\"text-decoration: underline;\">Final Thoughts<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The release of PHP 8 was an overnight achievement, considering it consumed heavy investment of time and efforts for the professionals. However, the released new php version of PHP 8 will surely be a nice treat to enthusiastic PHP community to try the new version.<\/p>\n<p>In addition, the release of PHP 8 has also endorsed the rising popularity and significance of php development services offered by the best mobile app company for reasons outlined in the following \u2013<\/p>\n<ol>\n<li>PHP has gone through several rounds of improvements since its 7.0 version. As a result, it comes equipped with specializations and better improvements.<\/li>\n<li>Php allows secure implementations and rapid innovations without encountering performance penalty. Moreover, the use of JIT can offset the susceptibility of PHP to overflows and other issues, including memory management.<\/li>\n<li>Being an open-source platform, the involvement of php development is a cost-effective approach for a big and small enterprises.<\/li>\n<li>It facilitates ease of customization with expanded functionalities for websites. As a result, your digital business will experience boosted performance for target audiences.<\/li>\n<\/ol>\n<p>However, the efficacy of php development services for your business could lay in shambles if is not rendered by <span style=\"color: #008080;\"><strong><a style=\"color: #008080;\" href=\"https:\/\/mobilecoderz.com\/mobile-app-development-company\/\" target=\"_blank\" rel=\"noopener\">best mobile app development company<\/a>.<\/strong><\/span> Therefore, make sure to choose such a company or hire php developer to maximize the full potentially of your php for your ecommerce business.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The latest version of PHP8 which was released on November 26, 2020, comes packed with some of the most innovative features and performance improvements. Touted to be a major update to the PHP language or an improved PHP version, PHP 8 has surfaced with distinct features and optimizations in a new avatar, such as \u2013 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8575,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,21,16],"tags":[472,473,469,470,471],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP 8: What are the new features In New Version of PHP? &#8211; MobileCoderz<\/title>\n<meta name=\"description\" content=\"The release of PHP 8 was an overnight achievement, it has gone through several rounds of improvements let see why it&#039;s different from other PHP versions..\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP 8: What are the new features In New Version of PHP? &#8211; MobileCoderz\" \/>\n<meta property=\"og:description\" content=\"The release of PHP 8 was an overnight achievement, it has gone through several rounds of improvements let see why it&#039;s different from other PHP versions..\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/\" \/>\n<meta property=\"og:site_name\" content=\"MobileCoderz\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MobileCoderz\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/MobileCoderz\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-28T10:29:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-24T05:19:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Php-Pros-Cons2-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"404\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"MobileCoderz Technologies\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mobilecoderz\" \/>\n<meta name=\"twitter:site\" content=\"@mobilecoderz\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"MobileCoderz Technologies\" \/>\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:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/\"},\"author\":{\"name\":\"MobileCoderz Technologies\",\"@id\":\"https:\/\/mobilecoderz.com\/blog\/#\/schema\/person\/5b5a4724393a36f7d68add2099993c49\"},\"headline\":\"PHP 8: What are the new features In New Version of PHP?\",\"datePublished\":\"2020-12-28T10:29:21+00:00\",\"dateModified\":\"2023-07-24T05:19:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/\"},\"wordCount\":1175,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\/\/mobilecoderz.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Php-Pros-Cons2-1.png\",\"keywords\":[\"information technology\",\"latest it trends\",\"php\",\"php version\",\"web development\"],\"articleSection\":[\"Featured\",\"Latest News\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/\",\"url\":\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/\",\"name\":\"PHP 8: What are the new features In New Version of PHP? &#8211; MobileCoderz\",\"isPartOf\":{\"@id\":\"https:\/\/mobilecoderz.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Php-Pros-Cons2-1.png\",\"datePublished\":\"2020-12-28T10:29:21+00:00\",\"dateModified\":\"2023-07-24T05:19:58+00:00\",\"description\":\"The release of PHP 8 was an overnight achievement, it has gone through several rounds of improvements let see why it's different from other PHP versions..\",\"breadcrumb\":{\"@id\":\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#primaryimage\",\"url\":\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Php-Pros-Cons2-1.png\",\"contentUrl\":\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Php-Pros-Cons2-1.png\",\"width\":720,\"height\":404,\"caption\":\"new features In New Version of PHP\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mobilecoderz.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP 8: What are the new features In New Version of PHP?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mobilecoderz.com\/blog\/#website\",\"url\":\"https:\/\/mobilecoderz.com\/blog\/\",\"name\":\"MobileCoderz\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/mobilecoderz.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mobilecoderz.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/mobilecoderz.com\/blog\/#organization\",\"name\":\"MobileCoderz Technologies Pvt Ltd\",\"url\":\"https:\/\/mobilecoderz.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mobilecoderz.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2016\/02\/logo-1-2.png\",\"contentUrl\":\"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2016\/02\/logo-1-2.png\",\"width\":100,\"height\":63,\"caption\":\"MobileCoderz Technologies Pvt Ltd\"},\"image\":{\"@id\":\"https:\/\/mobilecoderz.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MobileCoderz\/\",\"https:\/\/x.com\/mobilecoderz\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/mobilecoderz.com\/blog\/#\/schema\/person\/5b5a4724393a36f7d68add2099993c49\",\"name\":\"MobileCoderz Technologies\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mobilecoderz.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a645212d7c47cc4a362c65b6672886d6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a645212d7c47cc4a362c65b6672886d6?s=96&d=mm&r=g\",\"caption\":\"MobileCoderz Technologies\"},\"description\":\"MobileCoderz has established itself as the first choice of small and medium-sized businesses in the mobility space within a short span of time. We have a young &amp; talented team of mobile strategists, UX\/UI designers, and App Developers. We have a client base that spreads across emerging startups to small &amp; medium size Business across the globe. MobileCoderz has helped in the development of World Class mobile apps for 500+ clients, collaborating with its team of 120+ nerds.\",\"sameAs\":[\"https:\/\/mobilecoderz.com\/blog\",\"https:\/\/www.facebook.com\/MobileCoderz\/\",\"https:\/\/www.instagram.com\/official.mobilecoderz\/\",\"https:\/\/www.linkedin.com\/company\/mobilecoderz-technologies-pvt-ltd\/\",\"https:\/\/www.pinterest.com\/mobilecoderz\/\",\"https:\/\/x.com\/mobilecoderz\",\"mobi@ppAdmin\"],\"url\":\"https:\/\/mobilecoderz.com\/blog\/author\/mobippadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP 8: What are the new features In New Version of PHP? &#8211; MobileCoderz","description":"The release of PHP 8 was an overnight achievement, it has gone through several rounds of improvements let see why it's different from other PHP versions..","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:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/","og_locale":"en_US","og_type":"article","og_title":"PHP 8: What are the new features In New Version of PHP? &#8211; MobileCoderz","og_description":"The release of PHP 8 was an overnight achievement, it has gone through several rounds of improvements let see why it's different from other PHP versions..","og_url":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/","og_site_name":"MobileCoderz","article_publisher":"https:\/\/www.facebook.com\/MobileCoderz\/","article_author":"https:\/\/www.facebook.com\/MobileCoderz\/","article_published_time":"2020-12-28T10:29:21+00:00","article_modified_time":"2023-07-24T05:19:58+00:00","og_image":[{"width":720,"height":404,"url":"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Php-Pros-Cons2-1.png","type":"image\/png"}],"author":"MobileCoderz Technologies","twitter_card":"summary_large_image","twitter_creator":"@mobilecoderz","twitter_site":"@mobilecoderz","twitter_misc":{"Written by":"MobileCoderz Technologies","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#article","isPartOf":{"@id":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/"},"author":{"name":"MobileCoderz Technologies","@id":"https:\/\/mobilecoderz.com\/blog\/#\/schema\/person\/5b5a4724393a36f7d68add2099993c49"},"headline":"PHP 8: What are the new features In New Version of PHP?","datePublished":"2020-12-28T10:29:21+00:00","dateModified":"2023-07-24T05:19:58+00:00","mainEntityOfPage":{"@id":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/"},"wordCount":1175,"commentCount":6,"publisher":{"@id":"https:\/\/mobilecoderz.com\/blog\/#organization"},"image":{"@id":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#primaryimage"},"thumbnailUrl":"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Php-Pros-Cons2-1.png","keywords":["information technology","latest it trends","php","php version","web development"],"articleSection":["Featured","Latest News","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/","url":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/","name":"PHP 8: What are the new features In New Version of PHP? &#8211; MobileCoderz","isPartOf":{"@id":"https:\/\/mobilecoderz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#primaryimage"},"image":{"@id":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#primaryimage"},"thumbnailUrl":"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Php-Pros-Cons2-1.png","datePublished":"2020-12-28T10:29:21+00:00","dateModified":"2023-07-24T05:19:58+00:00","description":"The release of PHP 8 was an overnight achievement, it has gone through several rounds of improvements let see why it's different from other PHP versions..","breadcrumb":{"@id":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#primaryimage","url":"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Php-Pros-Cons2-1.png","contentUrl":"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2020\/12\/Php-Pros-Cons2-1.png","width":720,"height":404,"caption":"new features In New Version of PHP"},{"@type":"BreadcrumbList","@id":"https:\/\/mobilecoderz.com\/blog\/php-8-what-are-the-new-features-in-new-version-of-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mobilecoderz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP 8: What are the new features In New Version of PHP?"}]},{"@type":"WebSite","@id":"https:\/\/mobilecoderz.com\/blog\/#website","url":"https:\/\/mobilecoderz.com\/blog\/","name":"MobileCoderz","description":"","publisher":{"@id":"https:\/\/mobilecoderz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mobilecoderz.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mobilecoderz.com\/blog\/#organization","name":"MobileCoderz Technologies Pvt Ltd","url":"https:\/\/mobilecoderz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mobilecoderz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2016\/02\/logo-1-2.png","contentUrl":"https:\/\/mobilecoderz.com\/blog\/wp-content\/uploads\/2016\/02\/logo-1-2.png","width":100,"height":63,"caption":"MobileCoderz Technologies Pvt Ltd"},"image":{"@id":"https:\/\/mobilecoderz.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MobileCoderz\/","https:\/\/x.com\/mobilecoderz"]},{"@type":"Person","@id":"https:\/\/mobilecoderz.com\/blog\/#\/schema\/person\/5b5a4724393a36f7d68add2099993c49","name":"MobileCoderz Technologies","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mobilecoderz.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a645212d7c47cc4a362c65b6672886d6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a645212d7c47cc4a362c65b6672886d6?s=96&d=mm&r=g","caption":"MobileCoderz Technologies"},"description":"MobileCoderz has established itself as the first choice of small and medium-sized businesses in the mobility space within a short span of time. We have a young &amp; talented team of mobile strategists, UX\/UI designers, and App Developers. We have a client base that spreads across emerging startups to small &amp; medium size Business across the globe. MobileCoderz has helped in the development of World Class mobile apps for 500+ clients, collaborating with its team of 120+ nerds.","sameAs":["https:\/\/mobilecoderz.com\/blog","https:\/\/www.facebook.com\/MobileCoderz\/","https:\/\/www.instagram.com\/official.mobilecoderz\/","https:\/\/www.linkedin.com\/company\/mobilecoderz-technologies-pvt-ltd\/","https:\/\/www.pinterest.com\/mobilecoderz\/","https:\/\/x.com\/mobilecoderz","mobi@ppAdmin"],"url":"https:\/\/mobilecoderz.com\/blog\/author\/mobippadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/posts\/2493"}],"collection":[{"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/comments?post=2493"}],"version-history":[{"count":18,"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/posts\/2493\/revisions"}],"predecessor-version":[{"id":10077,"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/posts\/2493\/revisions\/10077"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/media\/8575"}],"wp:attachment":[{"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/media?parent=2493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/categories?post=2493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mobilecoderz.com\/blog\/wp-json\/wp\/v2\/tags?post=2493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}