PHP 8.2 end of life is 31 December 2026, and 53% of WordPress sites run 8.2 or older

PHP 8.2 gets its last security fixes from php.net on 31 December 2026. By wordpress.org's own numbers, 53.1% of WordPress sites run PHP 8.2 or older, and 31% are already on versions past their end of life. What end of life means, why the WordPress dashboard stays quiet about 8.2, the October bug that shows what expired means, how to check your version, what can break moving to 8.3 or 8.4, and a safe upgrade checklist.

PHP 8.2 reaches end of life on 31 December 2026. After that date, the PHP project stops releasing fixes for the 8.2 branch, including security fixes. That would be a footnote if few people still ran it. They do: by wordpress.org’s own statistics, 53.1% of WordPress sites run PHP 8.2 or older.

This post explains what end of life means, where the 53% comes from (and what it counts), why WordPress doesn’t warn most of those sites yet, how to check your own version, and how to upgrade without breaking things. The lead came from a Hacker News discussion (270 points on 29 Nov 2026) of Adam Greenough’s post “Elephant in the Server Room”; every number below is re-read from the primary sources, linked inline, on 30 November 2026. Nothing was run or tested for this post.

What “end of life” means

PHP’s supported versions page defines three states. In active support, “reported bugs and security issues are fixed and regular point releases are made”. In security fixes only, a branch is “supported for critical security issues only”, with releases “on an as-needed basis”. And end of life: “A release that is no longer supported. Users of this release should upgrade as soon as possible, as they may be exposed to unpatched security vulnerabilities.”

Since a 2024 RFC, every branch gets four years: two years of active support, then two of security fixes only, with end dates moved to 31 December. The vote on the extra security year was 31 to 0, and it applied “immediately on the all currently supported branches from PHP 8.2”.

PHP support windows: 2 years of bug fixes, then 2 years of security fixes20222023202420252026202720282029203020318.18.1: active support 2021-11-25 to 2023-11-258.1: security fixes only until 2025-12-318.28.2: active support 2022-12-08 to 2024-12-318.2: security fixes only until 2026-12-318.38.3: active support 2023-11-23 to 2025-12-318.3: security fixes only until 2027-12-318.48.4: active support 2024-11-21 to 2026-12-318.4: security fixes only until 2028-12-318.58.5: active support 2025-11-20 to 2027-12-318.5: security fixes only until 2029-12-318.68.6: active support 2026-11-19 to 2028-12-318.6: security fixes only until 2030-12-318.2 ends 31 Dec 2026active support (bugs + security)security fixes only
Dates from php.net/supported-versions.php and php.net/eol.php (read 30 Nov 2026); the four-year cycle comes from the 2024 release cycle RFC. Bars to scale.
Branch Released Active support until Security fixes until
8.1 25 Nov 2021 25 Nov 2023 31 Dec 2025 (ended)
8.2 8 Dec 2022 31 Dec 2024 31 Dec 2026
8.3 23 Nov 2023 31 Dec 2025 31 Dec 2027
8.4 21 Nov 2024 31 Dec 2026 31 Dec 2028
8.5 20 Nov 2025 31 Dec 2027 31 Dec 2029
8.6 19 Nov 2026 31 Dec 2028 31 Dec 2030

Two details worth knowing. First, 8.2 already got a bonus year: php.net as archived in October 2023 listed its security support until 8 December 2025, under the old three-year rule. Second, the same night 8.2 ends, 8.4 leaves active support and moves to security fixes only.

Where 53% comes from

WordPress publishes the PHP versions its sites report at api.wordpress.org/stats/php/1.0. The numbers on 30 November 2026:

8.6until 31 Dec 20308.6: 0.1 %0.1 %8.5until 31 Dec 20298.5: 7.1 %7.1 %8.4until 31 Dec 20288.4: 11.3 %11.3 %8.3until 31 Dec 20278.3: 28.3 %28.3 %8.2ends 31 Dec 20268.2: 22.1 %22.1 %8.1ended 31 Dec 20258.1: 8.8 %8.8 %8.0ended 26 Nov 20238.0: 3.2 %3.2 %7.4ended 28 Nov 20227.4: 13.9 %13.9 %7.0 – 7.3ended 2019 – 20217.0 – 7.3: 3.3 %3.3 %5.6 and older4.4 – 5.65.6 and older: 1.9 %1.9 %
Share of WordPress sites by PHP version, from api.wordpress.org/stats/php/1.0 (read 30 Nov 2026; sites that check wordpress.org for updates). Bars to scale. One colour marks 8.2 or older (53.1% together), the other the versions that still get security fixes in 2027. End dates from php.net.

Adding them up (our arithmetic on the published shares):

Group Share of WordPress sites
PHP 8.2 or older (no php.net fixes after 31 Dec 2026) 53.1%
PHP 8.1 or older (already past end of life today) 31.1%
PHP 7.4 alone (end of life 28 Nov 2022) 13.9%
Older than 7.4 (below WordPress’s own minimum) 5.2%
PHP 8.3 or newer 46.9%

What the stat counts. WordPress sends its PHP version along with its regular update check: wp_version_check() in wp-includes/update.php adds 'php' => $php_version to the request to api.wordpress.org/core/version-check/. So these are WordPress sites that check in with wordpress.org for updates. Sites that block that call aren’t counted, and wordpress.org doesn’t publish more about the method. It’s a very large sample of self-hosted WordPress, not “every website”.

Two things stand out. PHP 7.4, end of life for four years, is the third most common PHP version on WordPress (13.9%), ahead of 8.4 (11.3%). And 5.2% of sites run something older than 7.4, which is the oldest version WordPress itself still supports (“WordPress requires PHP 7.4 or higher”; WordPress 7.0 dropped 7.2 and 7.3).

What expired means in practice: October’s bug

On 21 October 2026, the PHP project published two critical advisories, GHSA-w8hw-w9fx-j79w (CVE-2026-109618, “RCE via OOM corruption”) and GHSA-6wmf-4rv5-p3rp (CVE-2026-109619, “RCE via stale global state”), both rated 9.2 on CVSS v4. The first advisory says the “confirmed impact is unauthenticated remote code execution as the web worker account”, validated against Apache’s PHP module (mod_php) with default limits. Security coverage nicknamed the pair “PHP2Shell” and reports that the bugs go back to PHP 5.4 (OffSec, as reported).

The patched versions listed in the advisories are 8.2.35, 8.3.36, 8.4.27 and 8.5.12. There is no php.net fix for 8.1, 8.0 or 7.4: their last releases were 8.1.34, 8.0.30 and 7.4.33. That’s end of life in one sentence: the fix exists, just not for your version.

And 8.2 is still getting such fixes right up to the end. PHP 8.2.36, released 19 November 2026, is a security release with 12 CVE fixes in its changelog, across CGI, Date, FPM, Phar, sessions, SOAP and the standard library. From January, the next batch like that won’t come to 8.2 from php.net.

Distribution and host PHP is different

Not every PHP 8.2 follows php.net’s date. Linux distributions ship and patch their own builds:

  • Debian 12 ships PHP 8.2; Debian’s security tracker lists 8.2.36-1~deb12u1 in bookworm-security. Debian 12’s long-term support runs to June 2028, as reported by endoflife.date.
  • Red Hat Enterprise Linux 8 and 9 list a PHP 8.2 application stream until May 2029 in Red Hat’s Application Streams life cycle.
  • Ubuntu 24.04’s default php is 8.3; Ubuntu 22.04’s is 8.1 (packages.ubuntu.com), patched by Ubuntu, not php.net.

If your PHP comes from your distribution, your vendor’s support date is the one that counts. On shared or managed hosting, ask your host which PHP builds they patch and until when.

Why the WordPress dashboard stays quiet

WordPress asks wordpress.org about your PHP version through the “serve happy” API (wp_check_php_version() in wp-admin/includes/misc.php). On 30 November 2026, the answer for 8.2 was:

{"recommended_version":"8.3","minimum_version":"7.4","is_supported":false,"is_secure":true,"is_acceptable":true}

The red “PHP Update Required” / “PHP Update Recommended” dashboard box is only added when is_acceptable is false (wp-admin/includes/dashboard.php). So on 8.2 there’s no box today. Site Health does flag it, mildly, as “recommended” rather than “critical”: “Your site is running on an older version of PHP (8.2), which should be updated”. WordPress’s requirements page recommends “PHP version 8.3 or greater”. (The API currently returns the same answer for 8.1. A comment in WordPress core notes that is_secure “doesn’t actually imply this is a secure version of PHP”.) wordpress.org can change these answers at any time.

How to check your PHP version

  • In WordPress: Tools → Site Health → Info → Server shows the PHP version (Site Health docs). The Status tab shows the PHP check above.
  • On a server: php -v prints the command-line PHP. Your web server can use a different build (PHP-FPM or an Apache module), so for the version your site really runs, use your host’s panel, or a temporary file with <?php phpinfo(); that you delete right after.

What can break when moving to 8.3 or 8.4

WordPress 7.0 and 7.1 support PHP 7.4 through 8.5, so core is rarely the problem. Old plugins and themes are. From the official migration guides:

Change Version Effect
Dynamic properties deprecated 8.2 Already behind you if you’re on 8.2 with clean logs
Date errors become DateError/DateException; stack-overflow guard 8.3 Code that relied on warnings may now see exceptions
Implicitly nullable parameters deprecated (Foo $x = null → ?Foo $x = null) 8.4 Deprecation notices, not errors
IMAP, OCI8, PDO_OCI, PSpell moved to PECL 8.4 Plugins that read mail over IMAP fail unless the host installs the PECL extension
exit()/die() type changes, E_STRICT removed 8.4 Rare edge cases in old code

A small irony on tooling: the well-known PHP Compatibility Checker plugin now says it “is no longer actively maintained” and “No additional releases, including security releases, will be made available.” The PHPCompatibility rules for PHP_CodeSniffer are still maintained (with a WordPress ruleset, PHPCompatibilityWP), e.g. phpcs -p wp-content/plugins --standard=PHPCompatibilityWP --runtime-set testVersion 8.3-. Any static scan is a hint, not a guarantee: it can’t see runtime problems.

A safe upgrade checklist

  1. Back up files and database.
  2. Copy the site to staging (many hosts offer a staging copy in their panel).
  3. Update WordPress, plugins and themes first; replace anything abandoned.
  4. Switch PHP on staging in your host’s panel: 8.3 (security fixes to end of 2027) or 8.4 (to end of 2028).
  5. Click through the important pages, forms and checkout, read the PHP error log, then repeat on the live site and keep the previous version one click away.

Which PHP version does your site run, and what’s keeping it there? The video version of this post asks the same question.