← All posts

PHP 8.2 reaches end of life on 31 December 2026

StackClock team ·

PHP 8.2 reaches end of life on 31 December 2026. After that day the PHP project will not release another fix for it, including security fixes.

If a site, a worker or a container in your stack still runs PHP 8.2, you have a month. Here is what end of life means in practice and how to get ahead of it.

What end of life means for PHP

PHP 8.2 keeps running after 31 December. Nothing breaks that day. The change is that from then on, every new vulnerability found in PHP 8.2 stays open, because nobody ships a patch for it.

That matters more for PHP than for many runtimes. It sits directly on the public internet, parses untrusted input and runs on shared hosting and old servers that nobody remembers to update. We covered what it looks like when the flaw is in PHP itself in PHP2Shell: are you affected, and what to do now.

Which version to move to

These are the current dates, from endoflife.date:

  • PHP 8.3: security support until 31 December 2027
  • PHP 8.4: until 31 December 2028
  • PHP 8.5: until 31 December 2029

Do not move to 8.3 out of habit. It gives you one more year, and you would be doing the same upgrade again next winter. Pick the newest version your framework, your extensions and your hosting support. 8.4 or 8.5 buys you two to three years.

You can see every PHP version and its date on our PHP end of life page.

Before you upgrade

  1. Read the migration guide for each version you skip. Deprecations that only logged a notice in 8.2 can become errors later.
  2. Update your dependencies first. Run your package manager's update and check that every package you use supports the target PHP version. Old packages are the usual blocker.
  3. Turn on deprecation notices in staging and run your test suite and a few real user flows. Fix what the notices point at.
  4. Check native extensions. Anything compiled for PHP, such as image, cache or database extensions, has to exist for the new version too.
  5. Roll out gradually. Move staging, then a small share of production traffic, then the rest, with a rollback ready.

If you use managed hosting

Shared hosts, platform-as-a-service providers and distribution packages keep their own calendars. A distribution can keep patching PHP 8.2 after the community stops. A host can also retire the version earlier. Look up the date for your provider rather than assuming it follows the 31 December date, and ask whether any extended support is free or paid.

How to find every PHP 8.2 you run

The one you forget is the one that gets attacked. Look in:

  • Dockerfile FROM lines such as php:8.2-fpm
  • composer.json entries for php and for config.platform.php
  • CI configuration and test matrices
  • hosting control panels, where the PHP version is a setting you may have set years ago

The free stack check reads a composer.lock or a Dockerfile and shows which runtimes and packages are close to their dates. StackClock then reminds you at 60, 30, 14, 7 and 1 day before a deadline, so a date like this one does not depend on someone remembering it.