There’s been a lot of talk about upgrading to PHP 7 especially in the WordPress community. Yoast SEO, a WordPress plugin, recently added a non-dismissible notification urging users who use old versions of PHP 5 to upgrade to PHP 7.
I’ve upgraded my server to PHP 7 and although it initially produced some warnings due to some theme and plugin code being written specifically for older PHP version, I’ve modified those and there have been no hiccups since then.
|PHP||Time (ms)||Memory (bytes)|
The image above shows PHP 7.1 being twice as fast as PHP 5.3 when loading a single post page. Also notice the decrease in memory usage.
There are WordPress-powered websites that don’t use page caching especially if their site contains a lot of dynamic content. In cases like those, upgrading would make a lot of difference. This speed difference might not be noticeable if you’re using a page caching plugin, but still, every saved resource counts.