PHP 8.2 end of life: what it means for your WordPress site and what to do before it
Security support for PHP 8.2 ends, and WordPress VIP puts the PHP deadline at December 31, 2026. If your WordPress site still runs on 8.2, plan to move to a newer PHP version before then. Before you switch, find out which plugins and themes break on the new version. End of life is about support. php.net says an end-of-life release "is no longer supported", and that its users "may be exposed to unpatched security vulnerabilities."
Moving off 8.2 takes four steps: check which PHP version your site runs, pick the version to move to, test your plugins and themes on that version on a staging copy, and fix or replace whatever breaks before you switch the live site.
What end of life means for PHP 8.2
PHP branches follow a fixed cycle. php.net puts it like this: "Each release branch of PHP is fully supported for two years from its initial stable release." After that, "each branch is then supported for two additional years for critical security issues only."
In that second stretch, php.net says "Releases during this period are made on an as-needed basis". Then "Once the four years of support are completed, the branch reaches its end of life and is no longer supported."
For 8.2, here's the date to plan around. WordPress VIP's PHP timeline lists "PHP 8.2 End of Life", with the note "Security support for PHP 8.2 ends." VIP gives the date as "before the PHP deadline (December 31, 2026)".
php.net's end-of-life page doesn't soften this either. If you use an unsupported branch, "you are strongly urged to upgrade to a current version, as using older versions may expose you to security vulnerabilities and bugs that have been fixed in more recent versions of PHP."
Check which PHP version your site runs
Start in WordPress itself. The WordPress docs say the "Site Health screen is located in your dashboard under" Tools > Site Health > Info. Expand the Server section. The docs say it "shows information related to your server setup", including "various PHP variables".
Site Health also warns you about old PHP. If you see "Your site is running an outdated version of PHP, which requires an update", WordPress is already telling you to move. If you can't get into the dashboard, ask your host which PHP version the site runs. If you manage several sites, check each one.
Pick the version to move to
WordPress.org's requirements page recommends PHP "version 8.3 or greater." WordPress also still runs on some older versions, but the same page warns that "these versions have reached their official End Of Life and may expose your site to security vulnerabilities." So running doesn't mean safe.
Before you choose, use php.net's support cycle to work out how long your target branch has left: two years of full support, then two years of security fixes only. If you pick a branch that's also close to its end, you'll have to move again soon. If your plugins allow it, choose a branch with plenty of support time left.
The switch itself happens at your host. WordPress's Update PHP page says it plainly: "Exactly how to do the update depends on your hosting company." Your host may have its own plan for 8.2. VIP, for example, says "The option to select PHP version 8.2 will be removed from the software management tool." Ask your host when 8.2 goes away on your plan and whether they'll move you automatically.
Find what breaks before you switch
Look at your plugins and themes first, especially old ones or custom code nobody has touched in a while. Here's the order to work in:
- Back up first. WordPress's Update PHP page explains why: "a backup will let you revert your site to how it is right now in the event anything goes wrong."
- Update core, plugins and themes while you're still on 8.2. Then you're testing the code you'll actually run after the switch, not old versions.
- Scan the code against the PHP version you're moving to, and list every plugin and theme that gets flagged.
- Make a staging copy of the site, switch only the staging copy to the new PHP version, and click through the parts that make you money: checkout, forms, logins, the editor.
- Watch the error log on staging while you test. Don't leave logging on in production: the WordPress docs warn that with WP_DEBUG_LOG on, "any errors on the site will be written to a file that is potentially available to all users."
For the scan step, one option is our free WordPress plugin, Bright Labs Compatibility Scanner for PHP. You pick a PHP version from 8.2 to 8.5, and it reads the code of every installed plugin and theme. Then it lists each file and line that uses something removed or deprecated in that version. It runs inside WordPress in short steps, with no exec() and no shell access, so it works on hosts that switch those off. The free plan also shows PHP end-of-life dates and support status.
The catch: the scanner reads code without running it. It can miss problems in code that is built at runtime, and it can flag code that never runs. Treat a clean result as a good sign, and still do the staging test.
When a plugin or theme gets flagged
Look at each flag before you panic. First check whether a newer release of that plugin or theme exists that you haven't installed yet. If you're already on the newest release, open the plugin's support forum and look for a thread about the PHP version you're targeting, or start one with the file and line from your scan.
If the author is gone and the plugin has no fix, you have two choices: replace it, or have the code fixed. Either way, start well before December 31, 2026. If it's custom theme code you own, the file and line from the scan tells your developer exactly where to start.
Once staging is clean, switch the live site, keep the backup, and check the error log again over the next few days. Flows that run on a schedule, like cron tasks or renewal emails, may not fire while you test, so keep watching for their errors after the switch.
Sources
- PHP supported versions and support cycle on php.net
- PHP unsupported branches and end-of-life page
- WordPress.org hosting requirements page
- WordPress.org guide to updating PHP
- WordPress Site Health screen documentation
- WordPress VIP PHP 8.3 update timeline
Questions
What happens if my WordPress site stays on PHP 8.2 after December 31, 2026?
php.net describes an end-of-life release as no longer supported, and says users "may be exposed to unpatched security vulnerabilities." Check your host's own plan for 8.2. WordPress VIP, for example, says the option to select PHP version 8.2 will be removed from its software management tool. Ask your host for their date.
Which PHP version should I move my WordPress site to?
WordPress.org recommends PHP version 8.3 or greater. Check how long your target branch is supported on php.net's supported versions page, then test your plugins and themes on that exact version on a staging copy.
Does a clean compatibility scan mean my site will work on the new PHP version?
Not on its own. Our scanner reads code without running it, so it can miss problems in code built at runtime, and it can flag code that never runs. Treat a clean result as a good sign, and test on a staging copy before you switch the live site.
Related
- Is WordPress compatible with PHP 8.5? What core supports and what to check in your plugins
- "Creation of dynamic property is deprecated" in WordPress: what it means and how to fix it
- WordPress critical error after a PHP update: how to get your site back and find the cause
- Which plugin is causing the PHP deprecated warnings in your WordPress log? How to find it