PHP 8.2 end of life

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

The PHP project gives PHP 8.2 security fixes until 31 December 2026, and none after that. Your application will keep running on 1 January 2027; what stops is the PHP project's patching of PHP 8.2 itself. This guide sets out the dates, how to check which version you run, and when an upgrade is enough.

The dates

PHP 8.0security support ended 26 November 2023
PHP 8.1security support ended 31 December 2025
PHP 8.2end of security support: 31 December 2026
PHP 8.3security fixes until 31 December 2027
PHP 8.4security fixes until 31 December 2028
PHP 8.5security fixes until 31 December 2029

Source: the PHP project's supported-versions page. PHP 5 and PHP 7 have no security support either; their last versions ended in 2018 (PHP 5.6) and 2022 (PHP 7.4).

What end of security support means

  • Your system does not stop working. PHP 8.2 keeps running exactly as it does today.
  • The PHP project stops releasing fixes for PHP 8.2. A security problem found in it after 31 December 2026 is fixed only in supported versions.
  • Some operating systems and hosting providers patch the PHP packages they ship on their own timetable. Ask yours what they will do for PHP 8.2, and until when.

Whether that matters for your system depends on what it holds and who can reach it. You are best placed to judge; the date is what you plan around.

How to check which PHP version you run

On the server, the command php -v prints the version. A web application can use a different PHP from the command line, so also check the hosting control panel, or ask your host or the developer who looks after the system. If the project uses Composer, the "php" line in composer.json shows which versions the code says it supports.

Check each environment: production, staging and any server that runs scheduled jobs. They are not always on the same version.

Your options

Upgrade to PHP 8.4 or 8.5: often enough

If the system already runs well on PHP 8.2, moving within PHP 8 is usually a smaller job than leaving PHP 5 or 7. PHP 8's later releases mostly deprecate old features rather than remove them, so most code needs fixes rather than a rewrite. An upgrade is likely enough when:

  • the code is in reasonable shape and someone still understands it;
  • its framework and libraries have versions that support PHP 8.4 or 8.5;
  • you are not planning large changes to what the system does.

Add automated tests as part of the upgrade if the system has none. They show the upgraded system still does what the old one did, and they make the next upgrade cheaper. PHP 8.3 is supported only until the end of 2027, so 8.4 or 8.5 saves you doing this again next year.

Rebuild: when an upgrade only delays the problem

A rebuild is worth weighing when the PHP 8.2 system still carries older code, has no tests, is hard to change, or needs to do much more than it does now. Then each upgrade costs more than the last, and the money may be better spent once. Our PHP modernisation guide explains how we rebuild PHP systems on a supported, tested stack, with your data migrated and reconciled.

If you cannot move by 31 December

Many systems will not move in time, and that is a planning question, not a reason to rush. Ask your hosting provider or operating system vendor whether their PHP 8.2 packages keep getting fixes, and plan the upgrade or rebuild with a date you can meet.

How we help you decide

An assessment tells you whether to upgrade or rebuild, and what each costs. The assessment (A$5,000 to A$50,000 + GST; usually 1 to 2 weeks, longer for complex systems) maps your code, its libraries and its data, and ends in a fixed price. If you want a rough figure first, a ballpark costs A$1,000 + GST and is deducted from the assessment if you go ahead.

Our engineers use AI to read your PHP and write the new code and its tests; a named person directs and checks the work, and nothing moves on without your sign-off. We build and test with made-up data, and the pilot runs on it too. Your real data is used only for the migration and its rehearsals, which include the parallel run, in an environment you approve. During the build it is never given to AI tools; during the migration and its rehearsals, AI tools work on it only inside that environment.

We have done this on our own platform, the only rebuild we have completed so far: 93,663 lines of PHP 5 rebuilt as Thisys Loop, in production 25 days after the first commit, with its data moved live and reconciled with 0 unexplained gaps.

Common questions

Will our PHP 8.2 application stop working on 1 January 2027?

No. It keeps running. What ends is the PHP project's security fixes for PHP 8.2.

Should we upgrade to PHP 8.3, 8.4 or 8.5?

PHP 8.4 or 8.5, if your framework and libraries support them. PHP 8.4 gets security fixes until 31 December 2028 and 8.5 until 31 December 2029; PHP 8.3 only until 31 December 2027.

Is an upgrade from PHP 8.2 a big job?

Usually smaller than an upgrade from PHP 5 or 7, because PHP 8's later releases mostly deprecate features rather than remove them. The work grows with the amount of code, old libraries that have no supported version, and the lack of tests to show nothing broke.

We are still on PHP 7 or PHP 5. Does this apply to us?

Your version is already out of security support, so the same choice applies sooner. Code that uses the old mysql_* functions cannot run on PHP 7 or later; see PHP modernisation.

Find out whether an upgrade is enough

Tell us which PHP version it runs on, what it does and what is worrying you. We reply within two business days.