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.
Published here · 8 sources · Resume reading
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, Check PHP deployments for the October security fixes and Patch W3 Total Cache CVE-2026-135616. Browse the Security topic.
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]
php -vWP-CLI reports the PHP binary and version it runs under. [6]
wp cli infoThe 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.
Keep this guide
Questions about this guide
When is PHP 8.2 end of life?
The PHP supported versions page lists security support for PHP 8.2 until 31 Dec 2026. Active support already ended on 31 Dec 2024.
How many WordPress sites still run PHP 8.2 or older?
WordPress.org version stats on 2026-11-30 showed 22.074 percent of reporting sites on PHP 8.2 and 31.072 percent on 8.1 or older, branches the PHP project no longer patches.
Which PHP version should a WordPress site move to?
WordPress.org recommends PHP 8.3 or greater. PHP 8.3 gets security fixes until 31 Dec 2027, 8.4 until 31 Dec 2028 and 8.5 until 31 Dec 2029.
Why do php -v and WordPress show different PHP versions?
The command-line PHP and the PHP that serves your web requests can be different installations. Trust the version WordPress reports for the site.
Sources
- PHP: supported versionsphp.net
- WordPress.org PHP version statistics APIapi.wordpress.org
- WordPress.org: requirementswordpress.org
- WordPress documentation: Site Health screenwordpress.org
- WP-CLI: wp cli infodeveloper.wordpress.org
- Debian bookworm release informationdebian.org
- Debian sources: php8.2 in bookwormsources.debian.org