Have a question? Connect with an Argano expert!
A subject matter expert will reach out to you within 24 hours.
The time has come to update your PHP version on your WordPress website.
Currently, WordPress recommends that you use PHP version 7.4 or above. However, on November 28, 2022 security support for 7.4 is set to retire.
It is important that you update your PHP version to 8.0 or above – not only to maintain active and security support but to take advantage of the performance enhancements of the latest versions.
Using an older version of PHP after November 28 will expose your website to security vulnerabilities.
Timeline of PHP Versions
To maintain your PHP instance with the latest features and security capabilities, it’s important to keep track of release lifecycles.
Generally, each PHP release tends to be fully supported for 2 years. In the meantime, the inevitable search for bugs and security issues are identified and patched.
All versions of PHP up to 7.3 have reached their end of life, meaning that new releases no longer support these versions. This means that users may be exposed to unpatched security vulnerabilities.
As for PHP 7.4, any new releases can only support critical security fixes. Even then, PHP 7.4 is reaching the end of life, which is set for November 28, 2022.
There are currently two versions of PHP with active support, PHP 8.0 and PHP 8.1 – although active support for PHP 8.0 will end on November 26, 2022.
What’s Behind the Slow Adoption of New PHP Versions?
Multiple reasons explain the slow adoption of new PHP versions, which include:
The decision – conscious or not – to run on outdated PHP is exposing websites to security vulnerabilities and most likely slowing down speed and performance.
Why Update your PHP Version?
Websites should be run on updated PHP versions for several reasons:
You can see the performance improvements with each new version of PHP – spanning from 5.6 to 8.1. There is a continuous gain in requests per second (req/sec), meaning the number of requests processed each second. At the same time, there is a continual improvement in response time.
PHP 7.0, for example, can execute twice as many requests per second when you compare it to PHP 5.6 – also with half the latency. These are clear performance gains. Even between the two latest versions, PHP 8.1 has shown to perform 8.5% more requests per second than PHP 8.0.
How to Check your Current PHP Version
We recommend that you determine the PHP version that your website is currently run on. Here is how:
<?php
echo 'Current PHP version: ' . phpversion();
?>
We ensure that all of our clients’ websites are up to date with their scripting languages, including PHP. We are currently engaging with our clients and working with each of them to update their PHP.
Core to our strategy and migration process is transparency. We maintain constant and open communication with our clients, including when it comes to software updates.
When we update PHP versions, we follow our code preparations, ensuring that the new version is fully tested before going live, and checking if any compatibility issues need to be addressed before being updated.
If you need a PHP upgrade, get in touch with us!
There are clear migration guides on the official PHP installation documentation. If direct control over updates is in the hands of a host, agency, or developer, then get in touch with them. If you’re able to update your PHP version yourself, here are the latest guides:
Migrating from PHP 8.0.x to PHP 8.1.x
Migrating from PHP 7.4.x to PHP 8.0.x
PHP is the scripting language core to web development. According to W3Techs’ data, it is used by 77.3% of all websites.
With its huge popularity, PHP is to scripting language what WordPress is to content management systems.
In fact, WordPress is entirely built on PHP.
With such a broad digital presence, it’s critical that businesses, developers, and hosts regularly update to the latest PHP version not only for security reasons but for improving site performance and support.
Alarmingly, the data shows that it is only a minority that is maintaining the latest PHP version. The latest version of PHP is 8.1, which was released in November 2021. However, W3Techs found that 55.8% of all websites using PHP are still using PHP 5 – which was released in 2004!
Within the WordPress ecosystem, 35% of websites continue to be built on PHP 5.6 or lower. And when you move up to PHP 7.1, a surprising 64% of websites are built on PHP versions that are no longer supported.
And that is both a problem in terms of security issues and a lost opportunity to take advantage of the enhanced performance benefits of the latest versions of PHP.
If you haven’t yet managed to update your PHP version, now is the time. The alternative is to run the risk of security vulnerabilities as well as miss out on improvements in overall website performance.
A subject matter expert will reach out to you within 24 hours.