# Plan for PHP 8.2 end of life on 31 Dec 2026

> PHP 8.2 security support ends 31 Dec 2026; 8.3 only lasts one more year, so check the version your site runs.

Source: https://fullbytedeveloper.com/blog/php-8-2-end-of-life-wordpress
Published here: 2026-11-30

PHP 8.2 end of life is 31 Dec 2026: after that date the PHP project ships no more security fixes for it. WordPress.org stats show 22.074 percent of reporting sites on PHP 8.2, and 31.072 percent already on 8.1 or older. [1][2]

Related reading: [Fix the WP Rocket vulnerability CVE-2026-125812](/blog/patch-wp-rocket-rce-cve-2026-125812), [Check PHP deployments for the October security fixes](/blog/php-critical-security-update-check) and [Patch W3 Total Cache CVE-2026-135616](/blog/patch-w3-total-cache-memcached-poi). Browse the [Security topic](https://fullbytedeveloper.com/blog/topic/security).

## Read the PHP version your site runs

The PHP that serves your pages is the one that matters. In WordPress, open Tools, then Site Health, then Info, and read the Server section, which shows your server setup and PHP settings. The Status tab flags "Your site is running an outdated version of PHP, which requires an update" when it applies. [5]

On a server you control, the PHP manual documents the version flag for the command-line binary. [4]

```bash
php -v
```

WP-CLI reports the PHP binary and version it runs under. [6]

```bash
wp cli info
```

The command line and the web server can use different PHP installations, so if the numbers disagree, trust Site Health.

## Compare it with the support dates

The PHP project publishes these security support end dates. [1]

| Branch | Security support until |
| --- | --- |
| 8.2 | 31 Dec 2026 |
| 8.3 | 31 Dec 2027 |
| 8.4 | 31 Dec 2028 |
| 8.5 | 31 Dec 2029 |
| 8.6 | 31 Dec 2030 |

PHP 8.6 was released on 19 Nov 2026. Branches older than 8.2 are already past their security support. [1]

Added together from the WordPress.org stats on 2026-11-30, 53.146 percent of reporting WordPress sites run a PHP branch that the PHP project will not patch after 31 Dec 2026. If your PHP comes from a Linux distribution, its security team may patch that package on its own schedule: Debian 12 ships PHP 8.2 and has Long Term Support until 30 June 2028. Check your distribution's notices before you count on that. [1][2][7][8]

## Pick the version to move to

WordPress.org recommends PHP 8.3 or greater. It still runs on PHP 7.4 and later, but it says those older versions have reached end of life and may expose your site to security vulnerabilities. [3]

I would not stop at 8.3. It gets one more year of security fixes, so you repeat this job in December 2027. Moving to 8.4 or 8.5 buys two or three years, if your theme and plugins support it. [1]

## Test the move on staging first

Change the PHP version on a staging copy of the site through your host's control panel, then load the front end, log in, and run the checkout or form flows that make you money. Site Health on the staging copy should show the new version. [5]

Switch production only after staging passes, and do it before 31 Dec 2026 so the holiday freeze does not leave the site on an unsupported branch.

Send this to the friend whose host control panel still says PHP 8.2.

## Sources

1. [PHP: supported versions](https://www.php.net/supported-versions.php)
2. [WordPress.org PHP version statistics API](https://api.wordpress.org/stats/php/1.0/)
3. [WordPress.org: requirements](https://wordpress.org/about/requirements/)
4. [PHP manual: command-line options](https://www.php.net/manual/en/features.commandline.options.php)
5. [WordPress documentation: Site Health screen](https://wordpress.org/documentation/article/site-health-screen/)
6. [WP-CLI: wp cli info](https://developer.wordpress.org/cli/commands/cli/info/)
7. [Debian bookworm release information](https://www.debian.org/releases/bookworm/)
8. [Debian sources: php8.2 in bookworm](https://sources.debian.org/src/php8.2/)
