{"id":26966,"date":"2017-05-30T21:15:29","date_gmt":"2017-05-31T02:15:29","guid":{"rendered":"https:\/\/wpengine.com\/?post_type=resource&#038;p=26966"},"modified":"2022-05-25T13:43:44","modified_gmt":"2022-05-25T18:43:44","slug":"php7-features-performance","status":"publish","type":"resource","link":"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/","title":{"rendered":"PHP 7 Features, Release and Requirements"},"content":{"rendered":"<p><a href=\"http:\/\/php.net\/\">PHP 7<\/a> is the first major version release of the PHP language in over a decade. It leaves behind many deprecated functions, while introducing some modern development standards to strengthen the future of PHP programming. Its potential for speedy performance is much higher than previous versions, often loading more than twice as fast as PHP 5.<\/p>\n<h2>PHP 7 New Features<\/h2>\n<p>Including all versions, <a href=\"https:\/\/w3techs.com\/technologies\/overview\/programming_language\/all\">PHP powers over 80% of the internet<\/a> and is currently the primary language driving WordPress (among other software and websites). PHP 7 comes packaged with a new Zend engine that helps it compete with server technology such as HHVM.<\/p>\n<p>As compiled, PHP 7.0.0 barely increased in size over past versions. However, it remains much leaner than its predecessors when it comes to outdated features. PHP 7 also drops many deprecated functions in favor of modernized features such as type hints and declarations. In addition, PHP 7 offers anonymous classes, the spaceship operator, and throwable errors. While PHP 7 certainly retains its ease of use for new developers, these updates will also be a welcome breath of fresh air for advanced developers.<\/p>\n<p>Perhaps most importantly, PHP 7 outshines previous versions by way of speed, security, and resource efficiency. For starters, it can handle uncached hits at <a href=\"https:\/\/wpengine.com\/blog\/php-7-the-way-of-the-future\/\">least twice as fast<\/a> as PHP 5. We\u2019ve also seen firsthand that PHP 7 should bring around a 30-50% improvement in memory consumption.<\/p>\n<h3>PHP 7 Hosting for WordPress<\/h3>\n<p>WordPress officially recommends that users to run their sites on PHP 7. This is because the WordPress core is always developed to run smoothly on the latest version of PHP.<br \/>\nWordPress continues to encourage all users to run the latest and greatest versions of PHP, including PHP 7 upon its release. \u2013 Aaron Jorbin<\/p>\n<p>Of course, as developers themselves, the WordPress team understands that the latest version of any software will attract developmental attention. It means that bugs, <a href=\"https:\/\/codex.wordpress.org\/Hardening_WordPress\"><span style=\"font-weight: 400;\">security fixes<\/span><\/a>, and feature improvements will primarily be made for PHP 7, as past versions of PHP have ceased to receive significant updates.<\/p>\n<p>For you, this means WordPress updates will be tailored to PHP 7 as it continues to mature and develop. In fact, WordPress\u2019 core has supported PHP 7 fully since its public release in December 2015. Meanwhile, the wider WordPress community is promoting more awareness of PHP 7 by way of third-party blogs, WordCamp talks, and more in order to bring developers and users up to speed.<\/p>\n<p>It\u2019s a benefit for all, because WordPress sites using PHP 7 should load quicker and run more efficiently than those using older versions. Whenever possible, it is best to find <a href=\"https:\/\/wpengine.com\/\" target=\"_blank\" rel=\"noopener\">WordPress hosting<\/a> that supports PHP 7 and takes advantage of its features.<\/p>\n<h3>Documentation<\/h3>\n<p>The official PHP manual is available online in a number of languages. Here, you can find detailed descriptions and examples for most of the PHP functions and classes, with notes on deprecation and updates for PHP 7 and beyond.<\/p>\n<p>If you\u2019d like to keep tabs on any PHP 7 issues related to WordPress, you can do so by following the #php7 tag on the Make WordPress Core blog \u2013 although there hasn\u2019t seemingly been an issue in a while. You\u2019ll mostly want to look out for ill-prepared plugins and themes, perhaps contacting developers of any not compatible with PHP 7 to help bolster its usage.<\/p>\n<h3>PHP 7 Release<\/h3>\n<p>Despite being such a widely used language, PHP hadn\u2019t received a major version update for over a decade. PHP 7 was first announced in August 2014 and was not released until December 2015 \u2013 meaning a near 18-month development process.<\/p>\n<p>The odd leap from PHP 5.5 to PHP 7 has a somewhat muddled history. PHP 6 began development in 2010, but was scrapped due to issues involving core Unicode support. There was a huge debate about whether to simply skip PHP 6 and move onto PHP 7, or release PHP 6 as a completely different project than the failed one. Ultimately, PHP 6 was skipped in order to avoid confusion between the failed update and the implemented changes that ended up as PHP 7.<\/p>\n<p>Here at WP Engine, we\u2019re <a href=\"https:\/\/wpengine.com\/support\/php-guide\/\"><span style=\"font-weight: 400;\">offering PHP 7 support<\/span><\/a> in order to best serve our customers with high speed and resource-efficient performance. It means you can be safe in the knowledge that your version of WordPress is already running on a modern, stable, and speedy platform.<\/p>\n<h3>Requirements<\/h3>\n<p>WordPress.org offers a general requirements page, where they display the most recent server recommendations, and they\u2019re updated when necessary. We recommend regularly checking in on this page for updates to ensure your sites are configured for optimal compatibility. Alternatively, you\u2019ll want to follow a solid WordPress-specific blog, as they will likely have first-hand information on any developments.<\/p>\n<p>Going forward in your own projects, PHP 7 will require you to remove any deprecated PHP functions from your code before it\u2019s executed properly. You\u2019ll also want to check for updates to existing functions so there isn\u2019t any confusion down the line. A general rule of thumb you can follow is to always keep your servers upgraded to the most recent stable releases of PHP, MySQL\/MariaDB, and Apache\/Nginx.<\/p>\n<p>Of course, it would be tedious to carry out these checks manually for each of your WordPress sites and projects. This is why we\u2019ve created the <a href=\"https:\/\/wpengine.com\/blog\/php-7-compatibility-checker-plugin\/\"><span style=\"font-weight: 400;\">PHP Compatibility Checker plugin<\/span><\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26967\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2017\/05\/php-checker-plugin.png\" alt=\"php compatability checker plugin\" width=\"1600\" height=\"719\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/05\/php-checker-plugin.png 1600w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/05\/php-checker-plugin-300x135.png 300w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/05\/php-checker-plugin-768x345.png 768w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/05\/php-checker-plugin-1024x460.png 1024w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/05\/php-checker-plugin-303x136.png 303w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/05\/php-checker-plugin-1113x500.png 1113w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/p>\n<p>To get started, simply install and run the plugin to determine whether there are any code elements that need addressing before completing the <a href=\"https:\/\/wpengine.com\/resources\/upgrading-to-php-7\/\">upgrade to PHP7<\/a>. It\u2019s simple to use, and there\u2019s a detailed rundown of the installation process, along with what it can and can\u2019t do, on the official WordPress.org Plugin Directory page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP 7 is the first major version release of the PHP language in over a decade. It leaves behind many deprecated functions, while introducing some modern development standards to strengthen the future of PHP programming. Its potential for speedy performance is much higher than previous versions, often loading more than twice as fast as PHP<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":131,"featured_media":0,"template":"","resource-topic":[912],"resource-role":[896,899],"resource-type":[916],"class_list":["post-26966","resource","type-resource","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP 7 Features, Release and Requirements | WP Engine<\/title>\n<meta name=\"description\" content=\"Learn about PHP 7&#039;s features, requirements, compatibility and the benefits it provides compared to previous versions of PHP (namely, PHP 5.5).\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP 7 Features, Release and Requirements | WP Engine\" \/>\n<meta property=\"og:description\" content=\"Learn about PHP 7&#039;s features, requirements, compatibility and the benefits it provides compared to previous versions of PHP (namely, PHP 5.5).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-25T18:43:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/wp-content\/uploads\/2017\/05\/php-checker-plugin.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/\",\"url\":\"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/\",\"name\":\"PHP 7 Features, Release and Requirements | WP Engine\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\"},\"datePublished\":\"2017-05-31T02:15:29+00:00\",\"dateModified\":\"2022-05-25T18:43:44+00:00\",\"description\":\"Learn about PHP 7's features, requirements, compatibility and the benefits it provides compared to previous versions of PHP (namely, PHP 5.5).\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/case-studies\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\/\/wpengine.com\/case-studies\/resources\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP 7 Features, Release and Requirements\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\",\"url\":\"https:\/\/wpengine.com\/case-studies\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/0a179d29dd6584428ab5170cac84b36a\",\"name\":\"Oliver Whitham\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/335b023e9e3436428700b32d6cf6c24136466235c9cb1c3134f65f604bda491b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/335b023e9e3436428700b32d6cf6c24136466235c9cb1c3134f65f604bda491b?s=96&d=mm&r=g\",\"caption\":\"Oliver Whitham\"},\"description\":\"Oliver Whitham is an Englishman in Austin, helping get the word out about WP Engine to the world!\",\"sameAs\":[\"http:\/\/wp.guide\",\"https:\/\/www.facebook.com\/olivermwhitham\",\"https:\/\/www.linkedin.com\/in\/oliverwhitham\",\"https:\/\/twitter.com\/seochemist\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP 7 Features, Release and Requirements | WP Engine","description":"Learn about PHP 7's features, requirements, compatibility and the benefits it provides compared to previous versions of PHP (namely, PHP 5.5).","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"PHP 7 Features, Release and Requirements | WP Engine","og_description":"Learn about PHP 7's features, requirements, compatibility and the benefits it provides compared to previous versions of PHP (namely, PHP 5.5).","og_url":"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_modified_time":"2022-05-25T18:43:44+00:00","og_image":[{"url":"https:\/\/wpengine.com\/wp-content\/uploads\/2017\/05\/php-checker-plugin.png"}],"twitter_card":"summary_large_image","twitter_site":"@wpengine","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/","url":"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/","name":"PHP 7 Features, Release and Requirements | WP Engine","isPartOf":{"@id":"https:\/\/wpengine.com\/case-studies\/#website"},"datePublished":"2017-05-31T02:15:29+00:00","dateModified":"2022-05-25T18:43:44+00:00","description":"Learn about PHP 7's features, requirements, compatibility and the benefits it provides compared to previous versions of PHP (namely, PHP 5.5).","breadcrumb":{"@id":"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/case-studies\/resources\/php7-features-performance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/case-studies\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/wpengine.com\/case-studies\/resources\/"},{"@type":"ListItem","position":3,"name":"PHP 7 Features, Release and Requirements"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/case-studies\/#website","url":"https:\/\/wpengine.com\/case-studies\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/0a179d29dd6584428ab5170cac84b36a","name":"Oliver Whitham","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/335b023e9e3436428700b32d6cf6c24136466235c9cb1c3134f65f604bda491b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/335b023e9e3436428700b32d6cf6c24136466235c9cb1c3134f65f604bda491b?s=96&d=mm&r=g","caption":"Oliver Whitham"},"description":"Oliver Whitham is an Englishman in Austin, helping get the word out about WP Engine to the world!","sameAs":["http:\/\/wp.guide","https:\/\/www.facebook.com\/olivermwhitham","https:\/\/www.linkedin.com\/in\/oliverwhitham","https:\/\/twitter.com\/seochemist"]}]}},"acf":[],"grid_image_url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/05\/php7-resource-center.png","media-type":{"term_id":916,"name":"Article","slug":"article"},"role":"<strong>Roles:<\/strong> Developer, Site Owner","topic":"<strong>Topics:<\/strong> Performance","_links":{"self":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource\/26966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource"}],"about":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/types\/resource"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/users\/131"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media?parent=26966"}],"wp:term":[{"taxonomy":"resource-topic","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-topic?post=26966"},{"taxonomy":"resource-role","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-role?post=26966"},{"taxonomy":"resource-type","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-type?post=26966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}