DEV Community

Cover image for 53% of WordPress sites run PHP that dies on Jan 1
frank chu
frank chu

Posted on

53% of WordPress sites run PHP that dies on Jan 1

53% of WordPress sites run PHP that dies on Jan 1

31.1% of WordPress sites already run a PHP version the PHP project no longer patches. On January 1 that number becomes 53.2% — not because anyone downgraded, but because PHP 8.2's security support ends at midnight on December 31. I pulled WordPress.org's own stats API this morning and re-ran the arithmetic myself, because the headline number deserves a check before it gets repeated.

What I actually pulled

WordPress.org publishes the PHP version distribution of self-hosted WordPress sites at api.wordpress.org/stats/php/1.0/. It returns one JSON object, version to percentage share, updated continuously. This is what it said when I fetched it on November 29, 2026:

{"4.4":0.008,"5.1":0.002,"5.2":0.121,"5.3":0.245,"5.4":0.161,"5.5":0.141,
 "5.6":1.228,"7.0":0.525,"7.1":0.312,"7.2":1.24,"7.3":1.231,"7.4":13.9,
 "8.0":3.217,"8.1":8.791,"8.2":22.08,"8.3":28.315,"8.4":11.291,"8.5":7.071,
 "8.6":0.119}
Enter fullscreen mode Exit fullscreen mode

The end-of-life dates come from php.net's own supported-versions table, which I also fetched: 8.2 gets security fixes until 31 Dec 2026, 8.3 until 31 Dec 2027, 8.4 until 31 Dec 2028. Versions 8.1 and older no longer appear in that table at all — they are already past support. Summing the shares against those dates:

already EOL today (PHP <= 8.1) ...... 31.122%
EOL on 2027-01-01 (PHP <= 8.2) ..... 53.202%
EOL on 2028-01-01 (PHP <= 8.3) ..... 81.517%
PHP 7.4 alone ....................... 13.900%
PHP 5.x, all versions ...............  1.898%
PHP 7.x, all versions ............... 17.208%
on 8.3+ (supported through 2027) ... 46.796%
Enter fullscreen mode Exit fullscreen mode

So the headline that circulated this week — Adam Greenough's "Over Half End of Life by January," which hit the Hacker News front page yesterday — reproduces exactly from the primary source. His 31%, his 53%, his 14% on PHP 7.4: all of them match the live API to the decimal. I am not correcting his arithmetic. I am correcting what the headline implies.

The 53% is a countdown, not a count

Today, the honest number is 31.1%. PHP 8.2 — the second most popular version at 22.08% of sites — is still getting security patches until December 31. The 53.2% is what the world looks like at 00:00 on January 1 if nobody upgrades between now and then. That distinction matters because "53% of sites run dead PHP" and "53% of sites will run dead PHP in five weeks unless they move" are different claims, and only the second one is true.

It also matters because the rate of movement is real. Greenough's post notes the share on 8.2-or-older fell about 2.4 points since November 2. I can't independently verify that trend from the live API alone — it only serves today's snapshot — but the direction is the only direction it ever goes: every time a popular version hits EOL, the past-support share jumps, then drifts slowly back down as hosts drag sites forward.

The scarier number is the one a year out. If nobody upgrades at all, 81.5% of WordPress sites are past official support on January 1, 2028, when 8.3 joins 8.2. Four in five. PHP 8.3 is the single most popular version today at 28.3% — the version WordPress itself recommends ("PHP version 8.3 or greater," per wordpress.org/about/requirements, fetched today) — and it has thirteen months of security fixes left.

PHP 7.4 is the Windows XP of PHP

The single biggest block of dead PHP is one version: 7.4, at 13.9% of all WordPress sites. The PHP project stopped fixing it on 28 November 2022 — four years ago this week. It peaked at 57% of WordPress sites in December 2022, right around the time support ended, and no version since has come close to that dominance. It was never a long-term-support release; PHP has never had those. The "LTS" was Ubuntu's: Ubuntu 20.04 shipped 7.4 as its default, and WordPress's own requirements page kept recommending 7.4 until July 2025.

Below that, the long tail is genuinely old. PHP 5.x — every 5.x release stopped getting fixes in 2018 or earlier — still runs on 1.9% of WordPress sites. PHP 7.0 through 7.3 add another 3.3%. These are sites nobody is watching. A site built a few years ago still works, its owner has never had a reason to look at the PHP version, and unless the host moves it on, nothing changes.

The plugins aren't pushing anyone either

The other half of the story is why nothing forces the move. A plugin on WordPress.org declares the oldest PHP it needs, and WordPress won't update a plugin to a version that needs newer PHP than the site has — so a site on old PHP stops getting that plugin's updates, security fixes included. I pulled the requires_php field for the 1,000 most popular plugins via the plugin directory API (query_plugins, browse=popular, 10 pages of 100) and counted:

requires_php      plugins
(none)              155
older than 7.0      198
7.0 - 7.3           160
7.4                 428
8.0                  26
8.1                  15
8.2                  12
8.3                   6
Enter fullscreen mode Exit fullscreen mode

941 out of 1,000 — 94.1% — still say they will run on PHP 7.4 or older, or give no minimum at all. (Greenough's post, checked November 28, says 94% with 429 on 7.4; my pull a day later has 428 on 7.4 and 26 on 8.0 — one plugin moved in between. The picture is unchanged.) Only 6 of the top 1,000 plugins require 8.3.

The exceptions prove the rule, and one of them is big: Contact Form 7 — 10 million+ active installs, version 6.2.6 — now requires PHP 8.3, which I confirmed against the plugin API today. Its jump from 7.4 to 8.3 in October rules out about 53% of WordPress sites, including everyone on 8.2, which still has official support. Several recent reviews say an automatic update took their sites down. WooCommerce 11.6, due in February, will need PHP 8.1. The big names that haven't moved — Elementor, Yoast SEO, Wordfence, Jetpack, Rank Math, WPForms, Gravity Forms, ACF — haven't announced a change yet.

The caveat that cuts the other way

"Past official support" is not the same as "unpatched." Once the PHP project stops fixing a version, fixes can still come from the Linux distribution (Ubuntu 22.04 still fixes 8.1; Red Hat and Rocky still fix 7.4; Debian 12 and Red Hat will keep fixing 8.2 until 2028 and 2029), from Ondřej Surý's widely used Debian/Ubuntu repository, from paid extended support like TuxCare, or from the host itself. The catch, as Greenough notes, is that these fixes usually keep the old version number — a patched PHP 7.4 and an unpatched one look exactly the same from inside WordPress, and only the host can say which one a site has. So 31.1% is the share of sites on versions the PHP project no longer fixes. The share that is actually running known-vulnerable code is smaller, and nobody outside the hosts can measure it.

That cuts both ways, though. The October PHP2Shell bugs — two critical remote-code-execution flaws — got official fixes for 8.2 to 8.5, plus an exceptional source backport for 7.4, 8.0 and 8.1 that hosts had to build and install themselves. The November batch of security fixes, seven of them critical, came for 8.2 to 8.5 only, with no source patches for anything older. A host that doesn't use a distribution, a community repository, or a paid extended-support service may have nobody patching its old PHP at all.

What I make of it

The headline is true and it is also the wrong number to worry about. 53% is a date on a calendar — it happens at midnight on December 31 whether or not anyone does anything, and the only question is how many sites move before then. The number that actually describes the state of the WordPress ecosystem today is 31.1%, and inside it, the number that describes neglect is 13.9%: one version, four years past support, still running one site in seven. WordPress still accepts 7.4 as its minimum, 94% of the top plugins still accept it, and the hosts that patch it anyway make the version number lie about the risk. The ecosystem has built a very comfortable way to not upgrade, and the calendar is the only thing that has ever broken the comfort.

Caveats, stated plainly

All shares are from WordPress.org's stats API, fetched by me on November 29, 2026, and they are shares of sites, not of traffic — a parked site counts the same as a busy shop. EOL dates are php.net's supported-versions table, fetched the same day. The plugin counts are my own pull of the plugin directory API the same day; requires_php is self-declared by each plugin's author, and the "older than 7.0" bucket includes plugins that probably haven't been tested on PHP that old in years. The 2.4-point trend since November 2 and the 57% peak for 7.4 are Greenough's figures from archived WordPress.org statistics, which I did not re-pull. I did not measure how many of the 31.1% are actually unpatched — that number is not measurable from outside the hosts.

Sources

Top comments (1)

Collapse
 
wbcomdesigns profile image
Wbcom Designs 💡 •

glad someone re-ran it from the source. most owners we talk to don't know what PHP version they're on at all, the host picked it years ago and nobody looked since. countdown framing is fair.