Home » Security » PHP 8.2 End of Life: Plan Your Upgrade Before December

PHP 8.2 End of Life: Plan Your Upgrade Before December

Published 2026-11-13 | Security

PHP 8.2 end of life banner: calendar, server and upgrade arrow

Short answer: PHP 8.2 reaches the end of its security support on December 31, 2026. Check which PHP version your website actually runs, test a currently supported version on a staging copy, and schedule the switch before that date. The PHP project lists PHP 8.3, 8.4 and 8.5 as supported branches, but your software and host must support the version you choose.

PHP is the server software that runs WordPress and many other websites. An end-of-life version can keep working, but upstream PHP will no longer issue security fixes for it. Updating plugins alone does not change the PHP version running on your server. If you recently updated PHP 8.2 for a vulnerability, keep it patched while you plan the branch upgrade. See the PHP security update guide for that separate task.

Step 1: find the PHP version used by the website

Start with the hosting control panel. Look for PHP, MultiPHP Manager, or Runtime and check the version assigned to the domain. In WordPress, open Tools → Site Health → Info → Server and find the PHP version.

If you have SSH, php -v reports the command-line PHP version. That can differ from the version serving web requests, so treat the hosting panel or WordPress Site Health as the better check for a typical site. Write down the version and each domain or subdomain that uses it. A staging site may use a different version from production.

Step 2: choose a supported target with your host

The PHP supported versions table lists security support dates. On November 13, 2026, PHP 8.3, 8.4 and 8.5 are supported; their scheduled security support ends on December 31, 2027, December 31, 2028 and December 31, 2029 respectively. Dates can change, so check the table when you plan the upgrade.

Ask your host which stable PHP branches it provides and whether your account can switch back if a test fails. Then check the software on your site: WordPress core, the active theme, every required plugin, custom code and PHP extensions such as imagick or intl. Use each vendor's compatibility notes, and review PHP's official 8.3 migration notes or 8.4 migration notes for changes that may affect your code.

Do not move a live site to a PHP release candidate. Use a stable supported release offered by your host. If a required plugin has no compatibility information, ask its developer or test it carefully on staging before making a choice.

Step 3: make a restorable backup and test staging

Create a fresh backup of both the website files and database. Confirm that your host can restore it, or use a staging copy to practice the recovery. A backup is useful only if you can restore it; see how to keep website backups.

Change the PHP version on staging first. Test the important paths a visitor uses: home and landing pages, contact forms, account login, checkout, search, uploads and scheduled tasks. For WordPress, update core, themes and plugins on staging, then review the PHP and site error logs. A compatibility problem may appear as a blank page, a fatal error, a missing extension warning or a feature that silently stops working. The PHP error guide explains how to read fatal errors.

Step 4: switch production and verify

Choose a quieter time, ensure the backup is current, and change the PHP version for the production domain in your host panel. Some hosts apply the selection immediately; others require a service restart or configuration change. Follow the host's instructions rather than editing server files you do not manage.

After the switch, check the version again from WordPress Site Health or the hosting panel. Visit the tested pages, submit a form, and complete a test transaction if the site accepts payments. Review error logs for new PHP warnings or fatal errors, and confirm scheduled jobs and email sending still work. Keep the old version available for a short rollback window if your host permits it, while fixing the underlying incompatibility.

Step 5: if you cannot upgrade by the deadline

Contact your hosting provider now and ask whether it offers a supported PHP version, a managed upgrade, or a documented extended-support option. Get the terms and end date in writing. Do not assume an older PHP branch is protected just because the site still loads or the hosting panel continues to offer it.

If your host cannot provide a supported runtime, plan a migration to a host that can. Keep PHP 8.2 fully patched until the move, reduce unnecessary plugins and administrator accounts, and keep tested backups. Those steps reduce exposure, but they do not extend upstream security support.

Common mistakes

  • Checking only php -v even though the website uses another PHP runtime.
  • Upgrading production before testing the theme, plugins and custom code on staging.
  • Treating an automatic PHP switch as a substitute for updating WordPress and its plugins.
  • Assuming that a hosting provider's extended support is the same as upstream PHP support.
  • Waiting until the end-of-life date to discover that the host or a required plugin blocks the upgrade.

Sources

Frequently Asked Questions

When does PHP 8.2 stop receiving security fixes?

The PHP project lists December 31, 2026 as the end of security support for PHP 8.2. After that date, the upstream project will no longer provide security fixes for that branch.

Which PHP version should I upgrade to from PHP 8.2?

Choose a currently supported stable branch that your host, CMS, theme and plugins all support. Test PHP 8.3, 8.4 or 8.5 on staging and confirm your extensions are available before switching production.

Can I upgrade PHP without a developer?

Many hosting panels let you change PHP versions, but first make a restorable backup and test a staging copy. Ask your host for help if your site has custom code or the panel does not show a supported version.

Found a mistake or still stuck? Contact us. See how we write and check these guides in our editorial policy, or read about DocumentGuy.

More in Security