Four years of support for every PHP version are enough, and I would not argue for more even if the PHP project had the money for it. Security support for PHP 8.2 ends on 31 December 2026. According to the statistics of WordPress.org, 22.1 % of WordPress sites run on this version and 53.1 % on it or an older one. Over the last few days I have therefore read several times that PHP is leaving half of all WordPress sites without security updates. I read the same numbers differently: longer support has existed for years at distributions, LTS vendors, and hosting companies, and sites move away from old PHP where someone who knows them as customers helps them to move.
I am a member of the board of the PHP Foundation. This article is my personal opinion and not an official statement of the Foundation.
Half is a sum, and it is shrinking
Adam Greenough compiled the numbers on 28 November in The Elephant in the Server Room, and they are correct. The 53.1 % are the sum over all versions from PHP 8.2 downwards. 31.0 % of the sites already run on versions for which the PHP project no longer publishes releases, 13.9 % on PHP 7.4 alone, whose support ended on 28 November 2022. Nothing changes for these sites on 1 January. The 22.1 % on PHP 8.2 join them on that day.
Nowhere does Greenough ask the PHP project to support its versions for longer. His suggestions are addressed to hosting companies, to the developers of plugins, and to WordPress, and he has carefully documented who actually maintains old PHP versions today. I recommend his article, although I disagree with him on one point, which I come to further down.
The sum is also shrinking. When WordPress announced on 9 January 2026 that it would drop support for PHP 7.2 and 7.3, PHP 7.4 stood at 22.20 %. Just under eleven months later it is at 13.9 %.
Someone who runs a website wants a website and not PHP. Many do not know which version runs underneath their site, and I think they should not have to. I therefore ask who can keep track of it for them.
PHP 8.2 got one year more than promised
The PHP project makes the same commitment for every release branch: two years of bug fixes, followed by two years of fixes for critical security issues. Both periods end on a 31 December.
| Version | Initial release | Bug fixes until | Security support until |
|---|---|---|---|
| PHP 8.2 | 8 December 2022 | 31 December 2024 | 31 December 2026 |
| PHP 8.3 | 23 November 2023 | 31 December 2025 | 31 December 2027 |
| PHP 8.4 | 21 November 2024 | 31 December 2026 | 31 December 2028 |
| PHP 8.5 | 20 November 2025 | 31 December 2027 | 31 December 2029 |
| PHP 8.6 | 19 November 2026 | 31 December 2028 | 31 December 2030 |
When PHP 8.2 was released, the old rule of two years of bug fixes and one year of security support still applied. The end was thus announced for December 2025. In April 2024, the project accepted the RFC Release cycle update by Jakub Zelenka and Derick Rethans; the extension of security support by one year passed with 31 votes to 0. Since then, php.net has said 31 December 2026. Anyone running PHP 8.2 has therefore received a good year more than was promised at its release, and has known the new date for more than two and a half years. Four successors have appeared in the meantime, from PHP 8.3 to PHP 8.6.
Why I would stay with four years even with more money
The strongest objection I have read in recent days goes like this: the length of support is a decision, and the project could put its resources into older branches instead of new features. That is true: it is a decision. It is made by RFC, by those who have a vote in the PHP project; the Foundation does not set it. The resources are scarce all the same: the Foundation's report for 2025 lists 730,534 US dollars in donations, eleven contracted developers working part-time and full-time, and expenses that exceeded income by around 139,000 US dollars. But I would stay with four years even with a considerably larger budget, for four reasons.
Every supported branch ties up the same few people. A security fix has to be adapted, tested, and released for every branch, by people who know the engine in detail. The Foundation itself described in October how few of them there are, and I wrote about it in Hate does not fix vulnerabilities. I know this work on a small scale from PHPUnit: in January 2026, the fix for CVE-2026-24765 went into five branches, and each of them needed a release of its own. Money changes this only slowly, because knowledge of the engine comes from years of working on it.
The ecosystem pays for every additional year as well. As long as the PHP project supports a version, the people who use it expect libraries, frameworks, and tools to support it too. With PHPUnit, I therefore make every new major version require a PHP version that the PHP project still provides with bug fixes: PHPUnit 13 requires PHP 8.4, and PHPUnit 14 will require PHP 8.5 in February. A fifth year on php.net would be a fifth year for everyone who maintains a project of their own downstream of PHP.
Four years are enough to turn the upgrade into a routine. A new version is released every year. Those who upgrade every year never come close to the end date, and those who skip two versions still have time. A longer period only postpones the upgrade and makes it bigger, because more versions then have to be bridged at once.
The fourth reason is that maintaining old versions over many years is a different business from developing a language. PHP is provided free of charge, and I do not see why the project should take this service, free of charge, off the hands of the providers whose business it is.
Longer support already exists, as a service
That business has customers, contracts, and prices, and there are providers who do it well. Debian 12 ships PHP 8.2 and maintains it as part of Debian LTS until 30 June 2028. Red Hat carries PHP 8.2 in RHEL 8 and RHEL 9 until May 2029. Ubuntu fixed the two critical vulnerabilities of October all the way down to PHP 5.5 in Ubuntu 14.04, for the releases up to Ubuntu 20.04 as part of the Ubuntu Pro subscription. TuxCare sells security fixes from PHP 5.2 onwards as an annual licence. IONOS and Strato offer “PHP Extended Support”: they patch the expired version themselves and, after a transition period, charge a monthly fee for it, Strato from 3 February 2027 for PHP 8.2.
For the statistics this means that the version number does not say whether a site is unpatched. Ubuntu 22.04 ships PHP 8.1 and provides it with security fixes as part of its standard support. A WordPress site running on it still counts towards the 31.0 %. How many of the 53.1 % run on a PHP maintained like this I do not know, and the statistics of WordPress.org cannot know it.
This is the point on which I disagree with Greenough. For the two vulnerabilities of 21 October, which became known as PHP2Shell, the security team of the PHP project provided minimal source backports for PHP 7.4, 8.0, and 8.1, explicitly for everyone who builds PHP from source or has no LTS vendor. There were no such backports for the security releases of 19 November. Greenough concludes that there is nothing to say which way it will go next time. I think there is: the commitment is in the table above, and the very same announcement of October repeats it with the sentence that PHP 8.1 and older no longer receive updates from the PHP project. The backports were an exception because of the severity of these two vulnerabilities.
I made the same exception in January. PHPUnit 8.5, 9.6, and 10.5 had long since stopped receiving bug fixes at that point, and I backported the fix for CVE-2026-24765 to these branches all the same. I did not turn that into a commitment for the next vulnerability, and that is how I read the backports of October as well.
Old versions disappear when someone names a date
The sites that are moving away from PHP 8.2 in these weeks are doing so because their hosting company has set a date. WordPress VIP updates production environments to PHP 8.3 on 7 December. Pressable updates all sites that are still running on PHP 8.2 on 8 December. WP Cloud removes PHP 8.2 on 15 December. IONOS and Strato take the other route: they write to their customers by e-mail in good time, keep the old version running, and name the price for it. Both routes also reach those who do not want to know anything about PHP. With the first they do not have to do anything; with the second they receive a message they can act on.
WordPress raises its minimum version once the share of a PHP version has fallen below roughly 5 % of installations. WordPress 7.0 moved it from PHP 7.2.24 to PHP 7.4 in May 2026. The threshold thus follows what happens at the hosting companies, and the decline of PHP 7.4 this year suggests that something is happening there.
WordPress 7.0 runs on everything from PHP 7.4 to PHP 8.5 with a single code base, and I know from my own work what that means. PHPUnit 8.5 was released in December 2019 and requires PHP 7.2. I still adapt it to every new PHP version: in August I replaced spl_object_hash() with spl_object_id() because PHP 8.6 reports the function as deprecated, and since September the test suite of this branch has also been running on PHP 8.7. All the while the code has to remain PHP 7.2, without typed properties, without match, without enums, and without readonly. Every year, this is work for a new PHP version whose features I am not allowed to use in this branch, and it is frustrating.
I have it easier than WordPress. With every major version of PHPUnit I can leave old PHP versions behind, because PHPUnit 8.5 remains installable alongside it. WordPress officially maintains a single branch and carries every old PHP version throughout its entire code. I understand well why it raises the minimum version cautiously.
Four years have a price
The price is paid by those who run a website and only learn of the end date when their hosting company writes to them. I stay with four years all the same, because a fifth year on php.net would reach these people as little as the first four did. The 13.9 % on PHP 7.4 have been past the end date for four years. The numbers moved where a hosting company named a date or WordPress raised its minimum version.
The discussion also brought up the term critical infrastructure, which PHP is said to be for the web. I share that assessment, and I conclude from it that the work on the supported branches should be funded in the way that befits critical infrastructure. The Foundation accepts sponsors.
Whether four years are enough for your project is your decision. If your application is to stay on one PHP version for longer, there are providers who maintain it for that long, and the question then is whether that maintenance is in your budget. If it is not, your date is in the table above: for PHP 8.3 it is 31 December 2027.