Few days ago, we, Cloudways, have added the support for PHP 7.1. We make sure that WordPress works perfectly with PHP 7.1 so that our customers do not face any issues when they upgrade from existing PHP version to PHP 7.1.
As you know, WordPress Core is fully compatible with PHP version 7 or greater. You must have heard that PHP 7.1 is an improved version of PHP 7 and much faster than older PHP 5.6.
Considering this upgrade, I decided to conduct a few comparisons on using WordPress with PHP 7.1, 7.0 and 5.6.
Without any further ado, let’s start the test by creating a testing environment.
For the testing purpose, I have launched a Vultr server with WordPress installed. Here are the specs of my server:
- Cloud Infrastructure: Vultr
- RAM: 1GB
- Data Center: Los Angeles
- PHP Version: 5.6
- Testing Location: California
- Testing Tool: Pingdom Tools
Note: All servers launched at Cloudways Platform comes pre-installed with PHP 7.0. For the testing purpose, I have downgraded the PHP version to 5.6 by going to Server Management > Settings & Packages > Packages and then upgraded to 7.0 and 7.1 respectively.
Here are my testing results for:
WordPress PHP 5.6
Then, I have upgraded from PHP 5.6 to PHP 7.0 and here are the improved results of:
WordPress PHP 7.0
WordPress PHP 7.1
As I mentioned earlier, WordPress Core is fully compatible with PHP 5.6 and later versions, but they recommend to use PHP 7 or greater version. You can see an improved performance by switching between different PHP versions. Therefore, it is always suggested to use an updated PHP version.
If you are planning to switch PHP version for your WordPress site. I would suggest not to play with a live site, instead, clone the live site first, and then test WordPress on staging environment. Make sure, the theme and all plugins are compatible with the version you are going to use.
Are you using WordPress with PHP 7.1? Did you face any compatibility issues? Do mention in the comments section below. If not, what stops you?
Mustaasam is the WordPress Community Manager at Cloudways - A Managed WordPress Hosting Platform, where he actively works and loves sharing his knowledge with the WordPress Community. When he is not working, you can find him playing squash with his friends, or defending in Football, and listening to music. You can email him at firstname.lastname@example.org
Be the first to check out WordPress 5.0
Use our Staging feature before upgrading your website to WordPress 5.0.