By now we all heard about php 7 and its speed improvements, so we sat out to test its performance by benchmarking two WordPress installations, one running on php 5.5.9 and another one running on php 7.0.3

Test Environment:

Php 5 test server

1 CPU
512mb Ram
Ubuntu 14.04 LTS
NGINX 1.4.6
MySQL 5.5.46
Php 5.5.9
Wordpress 4.4.2
Wp Super Cache plugin

Php 7 test server

1 CPU
512mb Ram
Ubuntu 14.04 LTS
NGINX 1.4.6
MySQL 5.5.46
Php 7.0.3
Wordpress 4.4.2
Wp Super Cache plugin

Benchmark server

1 CPU
512mb Ram
Ubuntu 14.04 LTS
Apache benchmark tool

Test Results:

wordpress-php5-vs-php7

Results show the amount of seconds that it took for each test to run and the request per second that the server was able to output, first test was the vanilla WordPress installation and the second one with Wp Super Cache plugin enabled.

Conclusion:

Php 7 pretty much is 100% faster then php 5, and it’s a huge performance improvement, we are going to be switching our websites over to php 7 soon and its something we recommend you do carefully because there still a lot of third-party plugins with outdated code that might create compatibility issues.