Skip to content
PatchTempo

GUIDE · PHP

PHP 8.2 end of life: what to do before 31 December 2026

The PHP project stops security fixes for PHP 8.2 at the end of 2026. Your site will keep running, but new vulnerabilities will stay open. Here is what that means and how to move on calmly.

GuidesPublished 7 November 2026

What changes on 1 January 2027

Nothing breaks. PHP 8.2 keeps running exactly as before. What stops is the stream of fixes: when a new vulnerability is found in PHP 8.2 after that date, the PHP project will not release a fix for it (php.net).

Security scanners and insurance questionnaires flag software that no longer gets security fixes, so an unsupported PHP version also tends to show up in audits.

Where does your PHP come from?

This decides your real deadline. Linux distributions patch the PHP packages they ship for as long as they support the release, on their own schedule.

php -v
apt-cache policy php8.2-cli
  • Debian 12 packages: Debian 12 ships PHP 8.2 (Debian) and its long-term support runs until 30 June 2028 (Debian). Check the Debian security tracker for your package before relying on it.
  • A third-party repository (common on Ubuntu to get newer PHP versions), a control panel or a Docker image such as php:8.2: you follow the PHP project's dates.
  • Shared hosting: your host decides. Most move customers to a newer version or charge for extended support; check their notice.

Which version to move to

VersionSecurity fixes untilWhen to choose it
PHP 8.331 Dec 2027When a plugin or package is not ready for 8.4 yet
PHP 8.431 Dec 2028The usual target today
PHP 8.531 Dec 2029When everything you use already supports it
PHP 8.631 Dec 2030Released on 19 November 2026: wait until your framework and plugins list it

Check your framework first

  • Laravel: Laravel 12 runs on PHP 8.2 to 8.5. Laravel 13 requires PHP 8.3 or newer (Laravel).
  • Symfony: Symfony 7.4 LTS runs on PHP 8.2 and newer. Symfony 8 requires PHP 8.4 (Symfony).
  • WordPress: recent versions are marked compatible with PHP 8.2 to 8.5, and WordPress recommends 8.3 or newer (compatibility table). Plugins and themes are the usual blockers: check each one's changelog.

Upgrade steps

  1. List what you run: php -v, the extensions (php -m), the PHP constraint in composer.json, and every plugin with its last update date.
  2. Update the framework and packages first, on the current PHP version, so you change one thing at a time.
  3. Run the app on the new PHP version in staging or CI. Watch the logs for deprecation notices.
  4. Fix deprecations. On PHP 8.4, the most common one is the implicitly nullable parameter: a typed parameter with a default of null must now say so (php.net).
  5. Switch production in a quiet window and keep the old PHP version installed, so switching back takes a minute.
  6. Watch the error logs for a few days, then remove the old version.

If you cannot upgrade in time

Keep it short and planned: write down the date you will upgrade, reduce what is exposed (admin pages behind a VPN or an IP allowlist, unused plugins removed) and keep everything else patched. Commercial extended support for old PHP versions exists, but it buys time, not a solution.

Questions

Will my site stop working on 1 January 2027?

No. PHP 8.2 keeps running. It just stops receiving security fixes from the PHP project.

Is PHP 8.1 still fine?

No. The PHP project's security support for PHP 8.1 ended on 31 December 2025, unless your distribution still patches its own package.

Can PatchTempo do the upgrade?

Yes. It is part of the one-off hardening upgrade: tested on staging, delivered as a pull request, rolled out after your approval. Start with the free audit.

Sources