This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

CloudwaysCDN — a powerful solution that offers superior performance and satisfied global audience for your business. Read More

WordPress on PHP 7.1 Performs Better Than PHP 7.0 and PHP 5.6

Updated on  26th September

2 Min Read
wordpress performance
Reading Time: 2 minutes

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.

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.

I’m going to test a WordPress site after doing a minor changes with the pre-installed Breeze — WordPress cache plugin. I have just enabled Minification and grouping of HTML, CSS, and JavaScript on Breeze. I have also removed the video from the default WordPress post to make external requests minimized.

Here are my testing results for:

WordPress PHP 5.6

WordPress PHP 5.6

Test URL

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.0

Test URL

WordPress PHP 7.1

WordPress PHP 7.1

Test URL

Final Words

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?

Share your opinion in the comment section. COMMENT NOW

Mustaasam Saleem

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 mustaasam.saleem@cloudways.com

Make Your WordPress Website 100% Faster.

Host it now on Cloudways WordPress Hosting Platform.

Get Our Newsletter
Be the first to get the latest updates and tutorials.

THERE’S MORE TO READ.