PHP 7 Compatibility Checker: Prep Your Site For PHP 7
Editor’s Note: PHP 7.3 is now available and we encourage all WordPress users to upgrade. PHP 7.4 will be here in November 2019, get prepared now.
There’s a great deal of buzz around PHP 7. As the next major version of PHP—the most popular web development language in the world—it promises serious performance gains, drastically reduced memory consumption, improved security, and more. Results show that with PHP 7, WordPress sites are more than twice as fast. See here for how PHP 7 performed in our testing.
We plan to make PHP 7 environments available to our 50,000 WP Engine customers this fall. To ensure that your WordPress site is PHP 7-ready, we recently launched PHP Compatibility Checker, a plugin now available in the WordPress Plugin Repository. With this plugin, which is the web’s first WordPress PHP 7 compatibility checker, you can test your WordPress site’s code conformance and whether your existing codebase is compatible for a PHP 7 upgrade.
Download PHP Compatibility Checker Plugin Now
The PHP Compatibility Checker plugin isn’t just for WP Engine customers. In the true spirit of open source, we’ve made it available to anyone with a WordPress site–that’s 26 percent of the internet (and rising). Originally, we developed this tool to help us migrate our customers to PHP 7, but realized it would be of great value to the community as site owners look to move to PHP 7 environments. Any WordPress user can now leverage the plugin to test their site’s PHP 7 compatibility and identify and fix any issues so they can enjoy the performance gains PHP 7 offers.
The plugin is the fruit of extensive testing and evaluation from our engineering teams as part of our promise to deliver an enterprise-grade managed WordPress platform that offers the full set of performance improvements of PHP 7. PHP powers roughly 84 percent of the web, while just 1.7 percent of WordPress websites run PHP 7. We hope the PHP Compatibility Checker plugin will help drive broader adoption of PHP 7 across the web by helping WordPress users proactively discover incompatibilities in their code, plugins and themes.
In addition to the plugin, WP Engine is also sponsoring the update of the open source PHPCompatibility library, which can be used by any PHP project.
At WP Engine, we strive to support the latest technologies as quickly and safely as possible. With PHP Compatibility Checker, we are now providing a tool to ensure the seamless adoption of PHP 7 as we work to add support for it across our platform. Customers whose sites are verified as PHP 7 compatible using the PHP Compatibility Checker plugin and meet some eligibility requirements will be able to request a migration to a PHP 7 environment in the fall. Please look for more information about official PHP 7 support for WP Engine customers in the near future. In addition, we are also working with developers of popular plugins used on our platform to ensure their solutions are compatible with PHP 7.
To get started, simply download the plugin to quickly and easily begin testing your site for PHP 7 compatibility. As customer success is our No. 1 priority, we are pleased to offer this automated way to ensure your sites are compatible to safely move to PHP 7.
We recommend viewing this PHP version and upgrade guide for more information.
Taylor McCaslin works as a Product Manager at WP Engine. He speaks at WordCamps and WordPress events around the country. WordPress has been Taylor’s platform of choice for over 5 years, he even paid his way through college by freelancing as a WordPress developer! When not creating products that captivate and delight, you’ll find Taylor geeking out with the latest tech gadget or experiencing the rich Austin art scene. Follow Taylor on Twitter @Taylor4484.
Join the conversation.
There are 19 comments
Is PHP 7.0 practically compatible with 5.6.x or the previous versions?
In most cases, PHP 5.6 code should be able to run on PHP 7 with no issue. Assuming a plugin or theme has correctly hooked into WordPress, backwards compatibility will not be an issue.
PHP 7 is very helpful site and very good this articles.
When is the PHP7 move coming to WPE?
How will you let me know when PHP 7 is available? Is there a newsletter signup available for this?
Thanks for this plugin. With http/2 and Lets Encrypt php7 is another feature I am waiting for 🙂 But there are quite some plugins in the results which are declared not to be compatible. I will report the details to the devs.
The only plugin the Checker was unable to check was “Essential Grid”
recently updated my joomla sites to php 7 and finding it very effective. site loads super fast and the resource consumption is less compared to php 5.5. but with wordpress its quite difficult because of the plugin usage. i hope there is an easy workaround to migrate and step forward to the future.
PHP 7 can’t run older wordpress sites with all plugins. You must be careful with that.
Thanks for the helpful article.
Thanks for this – I’m using it to upgrade a MU-plugin provided with a theme. It’s shocking that some of the top selling themes on Envato’s Theme Forest require you to use PHP 5.0 because their in-house plugin codebase hasn’t been updated in years.
Once you’ve checked and confirmed it will work, then what?
And the PHP 7.1 ?
how we can check for PHP 7.1?
Thanks for the helpful article.
Great article, thanks for the information looking forward to trying it 🙂
I get this error message when I try installing the checker by downloading the plugin and then uploading. I’m developing a website locally using DeskServer
Could not copy file. php-compatibility-checker/php52/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Docs/Functions/OpeningFunctionBraceKernighanRitchieStandard.xml
I get this error when I try to install directly.
Could not copy file. php-compatibility-checker/php52/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Docs/CodeAnalysis/ForLoopShouldBeWhileLoopStandard.xml
Any suggestions on what is going wrong
Hi John, thanks for your question!
For issues like this, we recommend going to the WordPress.org support forum for the plugin. You can find that here: https://wordpress.org/support/plugin/php-compatibility-checker
This plugin is awesome! Thank you! A few days ago I tried to upgrade from PHP 5.6 to 7.3, but I had “techical error” on my WordPress website. Then I have tried recommended by you plugin, removed all outdated plugins and upgraded to 7.3. Now I don’t have any problems with my website. It is also much faster than before.
Hi, thanks for this helpful plugin.
Can’t wait for PHP 8 compatibility checker 🙂