Over half of WordPress sites will run unsupported PHP by January
Elephant in the Server Room: >50% of WordPress Sites Run PHP That's EOL by Jan

More than half of all WordPress sites are on PHP versions that will be out of official support by January, with 31% already past end of life. PHP 8.2, used by 22% of sites, loses support on December 31. The October PHP2Shell crisis showed that old PHP often survives only through Linux distributions, paid services, and hosts patching behind the scenes—and when November's critical fixes arrived, the PHP project offered no backports for older versions.
The elephant in the room, as I see it, is how much old PHP is still out there, and how much of it only gets patched because Linux distributions, paid support services and hosts carry on fixing it behind the scenes, often without site owners knowing.
- jeroenhd
The real elephant in the room is that hosting platforms and normal server operating systems support and maintain versions of PHP for years after the PHP project stops doing so.
It doesn't really matter what the PHP project does or doesn't support. RHEL/Ubuntu will get you updates for five to ten years even if PHP drops support after a week, as can the repositories that are derived from them.
If you're running PHP 7.4 on Rocky 8.4, you have nothing to worry about for a couple years, despite what alarmist blogs may be shouting.
PHP's fast pace is good for the language, which has improved immensely over the years, but that doesn't reflect what PHP users have ever been running. For the exact same reason, KDE/Gnome users running this year's or even last year's version are only a small segment of the total user base, despite there not even being any notable LTS support.
- chantepierre
What WordPress has sold for years, that a website totally does not need someone remotely technical, was just a lie and is starting to really crumble down.
Two Wordpress websites I built for neighbors in 2014 have always self-updated to the last version and nothing ever broke. I just bump the PHP version on their shared hosting panel. Of course strictly no third-party plugins nor themes, only slim themes I wrote at the time. The one thing Wordpress has for it is backwards compatibility, but it’s also what is slowly killing it.
Recently I also helped a few small nonprofits I know IRL to either migrate their WP site to a statically generated site, pointing an agent at it created a perfect replica in about an hour, or just migrate everything to the last version to be able to upgrade their old PHP. Again, pointing Claude at it with a general « setup a mirror on PHP 8.5, report any breakage, upgrade anything needed and work through scripts to avoid needing excess reads » upgraded and fixed their spaghetti and tower of plugins in about 2 hours. Not going into too much technical details since everyone here knows what needs to be done but of course I made it setup a dev environment (that no one will ever use) and tests along the way.
So it is possible. But the first step is explaining to the owners that the « buy once and let live » model was never possible to begin with and that Wordpress culture has (implicitly, nobody writes that anywhere) sold them a mirage.
Edit : to be fair to W […]
- dofm
A lot of people on old servers with old PHP are only ever going to risk the smallest upgrade they can, to avoid deprecation issues.
There's a deprecation in PHP 8.0 to do with the order of parameters with default values that will bite a lot of code.
In PHP 8.2, they deprecated creation of dynamic properties on classes without #[AllowDynamicProperties] pragmas or __get/__set accessors. That one also messes with a fair bit of code, though it's an easy enough thing for an LLM to just add that attribute to every class.
There's also the "left behind" tax: the older your server becomes through sheer complexity of upgrading, the more likely you are to have to compile PHP from source, which is not the nicest when you are likely to have to replace a distribution version that had a bunch of packages installed.
I was in this position for one machine for PHPShell; I had to build the patched 7.4. I happen to know that the deprecations in 8.2 will bite me, but the old project is going to get a more considerable overhaul sooner than that, so that it is in more LLM-friendly patterns.
Random side note: if you are revitalising an old PHP app and intend to migrate it away from PHP to another language, one sane intermediate step you might consider is reworking it to use the Slim framework ( https://www.slimframework.com ) which uses a compact form of route closure definition that is so similar to e.g. Express, Gin, the core Golang http.Handle APIs etc. that it will be a much easier task to scrut […]
- LytraX
I have about 50 old clients with Wordpress websites on a server.
Some of them I created more than a decade ago. Wordpress may do auto updates, but compatibility with plugins and old themes is not there.
I am always trying to patch small things to make a site work with a newer PHP version; if it needs more time or even a big refactor/replace of plugins/theme, then I contact the clients and offer them an upgrade path with a price to pay unless they are paying for continues support.
There can be a lot of incidents on a live web server with dozens of websites; quite a few times such incidents come from old WordPress plugins with naive implementations; I always have a proper setup, isolating each website, every client with no cross-access and execution rights and I even block some dangerous PHP functions using `disable_functions` config directive.
PHP is one part of a big chain of actions and configurations that must be done right; but there are more things to do in order to keep a server less exposed to bad actors.
- TheTrueAres
Every year we get posts about this. Every year, we need to point out that bug fixes get back ported by others. It seems like many in the open source community forget how open source works. The official release is EOL but very few use the official release instead get their binaries from a third party provider.
- paulryanrogers
Looks like Rocky 8 can still get you PHP 7.4 updates. And paid RHEL 7 can deliver PHP 5.4 until 2029.
IMO it's not worth staying on versions so ancient, especially for WP and its community which is largely on PHP 8.
- NooneAtAll5
I don't think websites that haven't upgraded for so long have been keeping with updates anyway
- motionlessveloc
I have a bunch of ancient Wordpress blogs, and I never need to maintain them, because I pay hosting services to do it for me. On wordpress.com, basic hosting is free and domain mapping costs a grand total of $16/year.