{"id":24411,"date":"2015-08-03T23:01:42","date_gmt":"2015-08-03T15:01:42","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=24411"},"modified":"2023-04-06T21:54:27","modified_gmt":"2023-04-06T13:54:27","slug":"php7","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/php7\/","title":{"rendered":"PHP 7: 10 Things You Need to Know"},"content":{"rendered":"<p>Are you a web developer or a website owner? Do your sites run on PHP-enabled <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/fork-cms\/\" rel=\"noopener\">CMS<\/a> such as WordPress, Drupal, Joomla or Magento? Then I have good news for you: the feature-complete beta of the new <strong>PHP 7 was recently released<\/strong>. The 7.0.0 major release contains so many cool features that we decided to dedicate a whole post to it. But first, we need to slide in a few reminders.<\/p>\n<p>Note that PHP 7 is still in the development phase so <strong>don\u2019t use it in production<\/strong> until November when the <strong>final version<\/strong> will be released. If \u2013 as a future user \u2013 you want to take your fair share from the development process, you can help with downloading the latest <a target=\"_blank\" href=\"https:\/\/downloads.php.net\/~ab\/\" rel=\"noopener nofollow\">beta<\/a>, playing around with it in your testing environment and <a target=\"_blank\" href=\"https:\/\/bugs.php.net\/\" rel=\"noopener\">reporting bugs<\/a> you found during the testing. To find out when the next beta will be out, here\u2019s the project <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/todo\/php70#timetable\" rel=\"noopener\">timetable<\/a>.<\/p>\n<p>With that out of the way, let\u2019s check out PHP 7.<\/p>\n<h2>1. The Name\u2019s PHP 7 (Not 6)<\/h2>\n<p>The current stable release uses the version number <a target=\"_blank\" href=\"https:\/\/www.php.net\/ChangeLog-5.php#5.6.11\" rel=\"noopener\">PHP 5.6<\/a>. After <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/php6\" rel=\"noopener\">some dispute<\/a> the development team decided they would omit the PHP 6 name for the next major release. PHP 6 already existed in the past as an experimental project but never reached the production phase.<\/p>\n<p>To prevent users from mixing up the former attempt with the latest development, the new major release will run under the name of PHP 7.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/php-v7-logo.jpg\" alt=\"PHP 7 Logo\" width=\"700\" height=\"417\"><figcaption class=\"entry-image-caption\"><a target=\"_blank\" href=\"https:\/\/sdtimes.com\/php\/php-7-0-0-feature-complete-beta-released\/\" rel=\"noopener\">IMAGE: Software Development Times<\/a><\/figcaption><\/figure>\n<h2>2. The Brand Spanking New Zend Engine<\/h2>\n<p>The <a target=\"_blank\" href=\"https:\/\/www.zend.com\/\" rel=\"noopener\">Zend engine<\/a> has been powering PHP since 1999 when it was introduced with the then new PHP 4 release. Zend \u2013 not to confused with the <a target=\"_blank\" href=\"https:\/\/framework.zend.com\/\" rel=\"noopener\">Zend Framework<\/a> \u2013 is an open-source execution engine written in C that interprets the PHP language. The current PHP 5.X series use <strong>Zend Engine II<\/strong> that enhanced the funtionality of the initial engine and adds an <strong>extensible object model<\/strong> and a <strong>significant performance enhancement<\/strong> to the language.<\/p>\n<p>PHP 7 receives a brand new version of the engine coming under the code name of <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/phpng\" rel=\"noopener\">PHP#NG (Next Generation)<\/a>.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/phpng.jpg\" alt=\"PHPNG engine\" width=\"700\" height=\"232\"><figcaption class=\"entry-image-caption\">IMAGE: A Talk on ZendCon-2014<\/figcaption><\/figure>\n<h2>3. Twice The Speed<\/h2>\n<p>The most easily recognizable advantage of the new PHPNG engine is the significant performance improvement. The development team of PHPNG refactored the Zend Engine, and remarkably optimized memory usage.<\/p>\n<p>The results? You can see the performance benchmarks provided by the Zend Performance Team below. By using PHP 7 not only <strong>your code will be executed faster<\/strong> but you will also <strong>need fewer servers to serve the same amount of users<\/strong>.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/wp-php7-performance.jpg\" alt=\"PHP 7 performance WordPress\" width=\"700\" height=\"391\"><\/figure>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/frameworks-php7-performance.jpg\" alt=\"PHP 7 performance PHP Frameworks\" width=\"700\" height=\"381\"><figcaption class=\"entry-image-caption\"><a target=\"_blank\" href=\"https:\/\/www.zend.com\/en\/resources\/php7_infographic\" rel=\"noopener\">IMAGE: Zend.com<\/a><\/figcaption><\/figure>\n<h2>4. Facilitates Error Handling<\/h2>\n<p>To say the least, handling fatal and catchable fatal errors have never been an easy task for PHP coders. The new <strong>Engine Exceptions<\/strong> will allow you to replace these kind of errors with exceptions. If the exception is not caught, PHP will continue to return the same fatal errors as it does in the current 5.X series.<\/p>\n<p>The new <strong>\\EngineException<\/strong> objects don\u2019t extend the <strong>\\Exception<\/strong> Base Class. This ensures backward compatibility and results in two different kinds of exceptions in error handling: <strong>traditional<\/strong> and <strong>engine exceptions<\/strong>.<\/p>\n<p>To enable programmers to catch both, PHP 7 introduces a new <strong>shared Parent Class<\/strong> under the name of <strong>\\BaseException<\/strong>.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/engine-exceptions.jpg\" alt=\"Engine Exception\" width=\"700\" height=\"222\"><figcaption class=\"entry-image-caption\"><a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/engine_exceptions_for_php7\" rel=\"noopener\">IMAGE: Wiki.PHP.net<\/a><\/figcaption><\/figure>\n<h2>5. 64-Bit Windows Systems Support<\/h2>\n<p>PHP is a prominent member of the <a target=\"_blank\" href=\"https:\/\/www.webopedia.com\/definitions\/lamp\/\" rel=\"noopener nofollow\">LAMP stack<\/a> which means its native environment is Linux \u2013 but it\u2019s also possible to <a target=\"_blank\" href=\"https:\/\/windows.php.net\/\" rel=\"noopener\">run it <\/a>on a Windows system. The 5.X series don\u2019t yet provide 64-bit integer or large file support, so until now x64 builds have been considered <strong>experimental<\/strong>.<\/p>\n<p>PHP 7 will change this as it <strong>introduces consistent 64-bit support<\/strong> which means both native 64-bit integers and large files will be supported, allowing you to confidently run the language on your 64-bit Windows system in the future.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/win-x64-support.jpg\" alt=\"Windows x64 Built Support\" width=\"700\" height=\"431\"><\/figure>\n<h2>6. New Spaceship and Null Coalescing Operators<\/h2>\n<p>The <strong>Spaceship operator<\/strong> runs under the official name of <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/combined-comparison-operator\" rel=\"noopener\">Combined Comparison Operator<\/a>. The notation of the new operator looks like this: <code>&lt;=&gt;<\/code> (kind of like a simplified spaceship, if you imagine it right).<\/p>\n<p>The spacehip operator returns 0 if both operands are equal, 1 if the left is greater, and -1 if the right is greater. It\u2019s also called a <strong>three-way comparison operator<\/strong>, and it already exists in other popular programming languages like Perl and Ruby.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/spaceship-operator.jpg\" alt=\"Spaceship operator\" width=\"700\" height=\"323\"><figcaption class=\"entry-image-caption\"><a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/combined-comparison-operator\" rel=\"noopener\">IMAGE: Wiki.PHP.net<\/a><\/figcaption><\/figure>\n<p>The <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/isset_ternary\" rel=\"noopener\">Null Coalescing operator<\/a> is denoted with two question marks ( ?? ). You can use it when you want to check if something exists and return a default value, in case it doesn\u2019t. The coalesce operator returns the result of its first operand if it exists and is not null, and the second operand in any other cases.<\/p>\n<p>Here\u2019s how the new operator reduces the time spent with basic declarations:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/null-coalesce-operator.jpg\" alt=\"New Null Coalescing Operator\" width=\"700\" height=\"261\"><figcaption class=\"entry-image-caption\"><a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/isset_ternary\" rel=\"noopener\">IMAGE: Wiki.PHP.net<\/a><\/figcaption><\/figure>\n<h2>7. Enables Accurate Type Declarations<\/h2>\n<p>Have you ever wanted to prevent unintended return values by declaring the return type of a function? Well, the new PHP 7 enables developers to enhance the quality of their code with the help of <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/return_types\" rel=\"noopener\">return type declarations<\/a>.<\/p>\n<p>The image below depicts a very simple use case where the <strong>foo()<\/strong> function is supposed to return an array. Check out more complicated examples <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/return_types#examples\" rel=\"noopener\">here<\/a>.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/return-type-declarations.jpg\" alt=\"Return Type Declarations\" width=\"700\" height=\"129\"><figcaption class=\"entry-image-caption\"><a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/return_types\" rel=\"noopener\">IMAGE: Wiki.PHP.net<\/a><\/figcaption><\/figure>\n<p>To enhance the feature even more, PHP 7 introduces 4 new type declarations for scalar types: <strong>int, float, string<\/strong> and <strong>bool<\/strong>. The new <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/scalar_type_hints_v5\" rel=\"noopener\">scalar types<\/a> allow developers to denote that they are expecting integers, floats, strings, or booleans to be returned. The new scalar types introduced by PHP 7 will also be supported by argument <a target=\"_blank\" href=\"https:\/\/www.php.net\/manual\/en\/language.oop5.typehinting.php\" rel=\"noopener nofollow\">Type Hints<\/a> that enables developers to force the type of parameters since the PHP 5.X series.<\/p>\n<h2>8. Adds Anonymous Classes<\/h2>\n<p>PHP 7 enables you to use <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/anonymous_classes\" rel=\"noopener\">anonymous classes<\/a>, already a well-established practice in other object-oriented languages like C# and Java. An anonymous class is a class without a name. The object it instantiates has the same functionality as an object of a named class.<\/p>\n<p>The syntax is the same as what we are used to in traditional PHP classes, only the name is missing. If anonymous classes are used well, they can <strong>speed up coding as well execution time<\/strong>. Anonymous classes are excellent when a class is used only once during execution and in cases when a class doesn\u2019t need to be documented.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/anonymous-classes.jpg\" alt=\"Anonymous Classes\" width=\"700\" height=\"191\"><figcaption class=\"entry-image-caption\"><a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/anonymous_classes\" rel=\"noopener\">IMAGE: Wiki.PHP.net<\/a><\/figcaption><\/figure>\n<h2>9. Facilitates Imports From the Same Namespace<\/h2>\n<p>The new <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/group_use_declarations\" rel=\"noopener\">Group Use Declarations<\/a> feature will be godsent to those of you who want to <strong>import many classes from the same namespace<\/strong>. The new syntax cuts verbosity, makes your code tidier and easier on the eyes, and saves you a lot of typing time.<\/p>\n<p>It will also be easier to read through and debug codes, as group use declarations help you identify the imports that belong to the same module.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/group-use-declarations.jpg\" alt=\"New Group Use Declarations\" width=\"700\" height=\"306\"><figcaption class=\"entry-image-caption\"><a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/group_use_declarations\" rel=\"noopener\">IMAGE: Wiki.PHP.net<\/a><\/figcaption><\/figure>\n<h2>10. Cleans Up The Room<\/h2>\n<p>The goal of PHP 7 was to free up the space to enable improvement, so it was necessary to get rid of many deprecated functionalities and old and unsupported Server APIs and extensions. If you want to check which are these in detail, click <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/remove_deprecated_functionality_in_php7\" rel=\"noopener\">here<\/a> and <a target=\"_blank\" href=\"https:\/\/wiki.php.net\/rfc\/removal_of_dead_sapis_and_exts\" rel=\"noopener\">here<\/a>.<\/p>\n<p>All the removed items have been deprecated for a while in PHP 5 so most likely you haven\u2019t used them for a long time. However please note if you have a legacy app <strong>running on older PHP versions<\/strong> the new PHP 7 can <strong>potentially break the code<\/strong>.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/clean-up.jpg\" alt=\"Cleans Up The Room\" width=\"700\" height=\"466\"><\/figure>","protected":false},"excerpt":{"rendered":"<p>Discover the benefits and improvements of PHP7 for your web development projects. Upgrade your skills and stay ahead of the game.<\/p>\n","protected":false},"author":146,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3392],"tags":[1319],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>PHP 7: 10 Things You Need to Know - Hongkiat<\/title>\n<meta name=\"description\" content=\"Discover the benefits and improvements of PHP7 for your web development projects. Upgrade your skills and stay ahead of the game.\" \/>\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.hongkiat.com\/blog\/php7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP 7: 10 Things You Need to Know\" \/>\n<meta property=\"og:description\" content=\"Discover the benefits and improvements of PHP7 for your web development projects. Upgrade your skills and stay ahead of the game.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/php7\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-03T15:01:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-06T13:54:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/php7\/php-v7-logo.jpg\" \/>\n<meta name=\"author\" content=\"Anna Monus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anna Monus\" \/>\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.hongkiat.com\\\/blog\\\/php7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/\"},\"author\":{\"name\":\"Anna Monus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/a601053a0ab457901e00cdc83bd5359e\"},\"headline\":\"PHP 7: 10 Things You Need to Know\",\"datePublished\":\"2015-08-03T15:01:42+00:00\",\"dateModified\":\"2023-04-06T13:54:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/\"},\"wordCount\":1190,\"commentCount\":79,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/php7\\\/php-v7-logo.jpg\",\"keywords\":[\"PHP\"],\"articleSection\":[\"Coding\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/\",\"name\":\"PHP 7: 10 Things You Need to Know - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/php7\\\/php-v7-logo.jpg\",\"datePublished\":\"2015-08-03T15:01:42+00:00\",\"dateModified\":\"2023-04-06T13:54:27+00:00\",\"description\":\"Discover the benefits and improvements of PHP7 for your web development projects. Upgrade your skills and stay ahead of the game.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/php7\\\/php-v7-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/php7\\\/php-v7-logo.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/php7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP 7: 10 Things You Need to Know\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/a601053a0ab457901e00cdc83bd5359e\",\"name\":\"Anna Monus\",\"description\":\"Anna is Technical Editor and Writer for Hongkiat.com. She mainly covers front-end frameworks, web standards, accessibility, WordPress development, and UX design.\",\"sameAs\":[\"https:\\\/\\\/www.annalytic.com\\\/\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/anna_monus\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PHP 7: 10 Things You Need to Know - Hongkiat","description":"Discover the benefits and improvements of PHP7 for your web development projects. Upgrade your skills and stay ahead of the game.","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.hongkiat.com\/blog\/php7\/","og_locale":"en_US","og_type":"article","og_title":"PHP 7: 10 Things You Need to Know","og_description":"Discover the benefits and improvements of PHP7 for your web development projects. Upgrade your skills and stay ahead of the game.","og_url":"https:\/\/www.hongkiat.com\/blog\/php7\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2015-08-03T15:01:42+00:00","article_modified_time":"2023-04-06T13:54:27+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/php7\/php-v7-logo.jpg","type":"","width":"","height":""}],"author":"Anna Monus","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Anna Monus","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/php7\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/php7\/"},"author":{"name":"Anna Monus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/a601053a0ab457901e00cdc83bd5359e"},"headline":"PHP 7: 10 Things You Need to Know","datePublished":"2015-08-03T15:01:42+00:00","dateModified":"2023-04-06T13:54:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/php7\/"},"wordCount":1190,"commentCount":79,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/php7\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/php7\/php-v7-logo.jpg","keywords":["PHP"],"articleSection":["Coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/php7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/php7\/","url":"https:\/\/www.hongkiat.com\/blog\/php7\/","name":"PHP 7: 10 Things You Need to Know - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/php7\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/php7\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/php7\/php-v7-logo.jpg","datePublished":"2015-08-03T15:01:42+00:00","dateModified":"2023-04-06T13:54:27+00:00","description":"Discover the benefits and improvements of PHP7 for your web development projects. Upgrade your skills and stay ahead of the game.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/php7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/php7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/php7\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/php7\/php-v7-logo.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/php7\/php-v7-logo.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/php7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP 7: 10 Things You Need to Know"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/a601053a0ab457901e00cdc83bd5359e","name":"Anna Monus","description":"Anna is Technical Editor and Writer for Hongkiat.com. She mainly covers front-end frameworks, web standards, accessibility, WordPress development, and UX design.","sameAs":["https:\/\/www.annalytic.com\/"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/anna_monus\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/s4uxU-php7","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/24411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/146"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=24411"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/24411\/revisions"}],"predecessor-version":[{"id":66213,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/24411\/revisions\/66213"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=24411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=24411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=24411"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=24411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}