Home/ Engineering Insights/ PHP 8.2 Security Support Ends 31 December 2026: What to Do Now

PHP 8.2 Security Support Ends 31 December 2026: What to Do Now

Source. This article is based on PHP: Supported Versions. Details were checked against it on November 1, 2026; check the source for later changes.

PHP 8.2 stops receiving security fixes on 31 December 2026. As of today, 1 November 2026, that is about two months away. The PHP supported versions page lists 31 December 2026 as the "Security Support Until" date for the 8.2 branch, and the endoflife.date data for PHP gives the same end-of-life date. Active support for 8.2 already ended on 31 December 2024, so it has been receiving security fixes only since then.

After the date, a vulnerability found in PHP 8.2 will not get an official patch from the PHP project. Servers keep running, which is what makes this easy to ignore until an audit or a hosting provider forces the question.

Where the neighbouring branches stand

These dates are taken from the same two sources. Use them to choose a target.

  • PHP 8.1: security support ended on 31 December 2025, according to endoflife.date. Anything still on 8.1 is already past it.
  • PHP 8.2: security support ends 31 December 2026.
  • PHP 8.3: active support ended 31 December 2025; security support runs until 31 December 2027.
  • PHP 8.4: active support until 31 December 2026; security support until 31 December 2028.
  • PHP 8.5: released 20 November 2025 per the supported versions page; security support until 31 December 2029.

endoflife.date lists 8.2.35 as the latest 8.2 release, dated 21 October 2026. If you stay on 8.2 until the end, that is the kind of point release to be running, not whatever your distribution image froze at.

Who is affected and how to tell

You are affected if any web server, CLI cron host, container image or CI runner you operate reports an 8.2 version. Check each one, because the PHP-FPM version and the CLI version often differ on the same machine.

php -v
php-fpm -v
php -r 'echo PHP_VERSION, PHP_EOL;'

For web requests, the version your site actually uses can differ from the CLI. Use a temporary script that prints PHP_VERSION behind authentication, or check your hosting control panel, and delete it afterwards.

Then check what your dependencies allow. Composer can show the platform requirements your installed packages declare, and whether the current runtime satisfies them.

composer check-platform-reqs
composer why-not php 8.4

The second command lists packages whose constraints block a given PHP version. Run it for the version you plan to move to. Also read the require.php and config.platform.php entries in composer.json, because a pinned platform value can hide problems until the real upgrade.

The fix: move to a supported branch

The fix is to upgrade to a branch that still has security support. Based on the dates above, 8.4 or 8.5 gives the longest runway; 8.3 is a reasonable stop if a dependency is not ready for 8.4. The project publishes a migration guide for each branch, linked from the supported versions page, and that is the authoritative list of removed and changed behaviour. We are not repeating it here.

  1. Inventory. List every environment: production, staging, CLI workers, queue consumers, CI images and developer containers.
  2. Read the migration guides for each branch between your current one and the target, for example 8.2 to 8.3 to 8.4.
  3. Update dependencies first while still on 8.2, so you change one variable at a time. Run composer update in a branch and run your test suite.
  4. Raise the constraint in composer.json once the code runs on the target version.
  5. Run staging on the target version with production-like data and watch the error log for deprecation notices.
  6. Switch production with a rollback path: keep the old PHP-FPM pool or image available until the new one has run through a full business cycle.

Turn on full error reporting on staging so deprecations show up before they become errors:

error_reporting = E_ALL
display_errors = Off
log_errors = On

If you cannot upgrade before 31 December

The sources do not offer a workaround for end of support, because there is none from the PHP project: the date is when official fixes stop. What you can do is a matter of risk management, and it is our suggestion, not something from the sources:

  • Check whether your operating system vendor ships its own security backports for PHP 8.2, and for how long. This varies by vendor, so read their policy rather than assuming.
  • Restrict exposure of the affected hosts: put them behind a web application firewall, remove unused PHP extensions, and keep administrative endpoints off the public internet.
  • Write down a dated upgrade plan so the exception has an end.

How to confirm the move worked

Re-run the version checks on every environment from the inventory. Confirm php -v and php-fpm -v report the new branch, that composer check-platform-reqs exits cleanly, and that your error log shows no new deprecation or fatal entries after a full day of traffic. Check scheduled jobs separately: cron and queue workers are the usual place a forgotten old binary survives.

When this points at a bigger problem

If the upgrade is blocked, the cause is rarely PHP itself. It is usually an abandoned dependency, a framework version that stopped at an older PHP, or code with no tests, so nobody can say what a change will break. That is the pattern we see behind most late upgrades. Our write-up on upgrading legacy PHP to PHP 8 covers how to find what breaks, adding tests to legacy PHP code shows how to get a safety net first, and running old and new PHP side by side helps when you need to move one part at a time. If your platform is in that state, our legacy system support work is built for it.

Dates in this article come from php.net and the endoflife.date PHP data as read on 1 November 2026. Check the live page before you plan around them.

Frequently asked questions

When does PHP 8.2 stop receiving security fixes?

On 31 December 2026, according to the PHP supported versions page. Active support already ended on 31 December 2024.

Which PHP version should I upgrade to?

Pick a branch that is still supported for as long as you can get. Per the supported versions page, 8.4 has security support until 31 December 2028 and 8.5 until 31 December 2029.

Is PHP 8.1 still supported?

No. endoflife.date lists 31 December 2025 as its end-of-life date.

Stuck on an old PHP version?

We audit your dependencies and code, then move your platform to a supported PHP version in stages.

See our Legacy System Support

Read about our legacy PHP modernisation services →

Ravi Raghav, Founder & CEO of AllScript Lab
Written by Ravi Raghav Founder & CEO