---
title: PHP 8.2 End of Life (31 Dec 2026): What to Do Now
url: https://theahmadgroup.com/blog/php-8-2-end-of-life/
---

1.  [Home](/)
2.  [Insights](/blog/)
3.  PHP 8.2 end of life

# PHP 8.2 end of life is 31 December 2026: what happens and how to upgrade

PHP 8.2 gets its last security fix on 31 December 2026. What end of life means for your site, which version to move to, and a step-by-step upgrade plan.

By The Ahmad Group, 2 December 2026, 6 min read

PHP 8.2 reaches end of life on **31 December 2026**. After that date the PHP project releases no more fixes for it, including security fixes. If your website, Laravel application or WordPress install still runs on 8.2 (or older), now is the time to plan the move.

## The dates, from php.net

PHP gives each version two years of active support, then two years of security fixes only. These are the official dates from the PHP project:

Version

Released

Security fixes until

Status in December 2026

PHP 8.1

Nov 2021

31 Dec 2025

End of life

PHP 8.2

Dec 2022

**31 Dec 2026**

Security fixes only, ending this month

PHP 8.3

Nov 2023

31 Dec 2027

Security fixes only

PHP 8.4

Nov 2024

31 Dec 2028

Supported

PHP 8.5

Nov 2025

31 Dec 2029

Supported

PHP 8.6

Nov 2026

31 Dec 2030

Supported, newest

You can check the current list at any time on php.net’s supported versions page.

## What end of life actually means

Nothing switches off on 1 January. Your site keeps working. Three things change:

-   **No security patches.** Any vulnerability found in PHP 8.2 from 2027 onwards stays open. Attackers read the same security advisories you do, and they know which versions will never be fixed.
-   **Hosts start removing it.** Shared and managed hosts drop old PHP versions on their own schedule. Some move sites to a newer version automatically, which can break an application that was never tested on it.
-   **Packages move on.** New releases of Composer packages, Laravel and WordPress plugins stop supporting old PHP versions. Staying on 8.2 slowly freezes your dependencies too, so even small changes get harder.

For businesses that fill in security questionnaires, cyber insurance forms or PCI DSS checks, “do you run supported software?” is a standard question. After 31 December, PHP 8.2 is a “no”.

## Which version should you move to?

Jumping straight to the newest version is not always the best move. Pick the newest version that your framework, packages and hosting all support:

-   **PHP 8.4** is the safe choice for most applications today: supported until the end of 2028, and widely available on hosting.
-   **PHP 8.5** gives you a year more runway, if all your dependencies already support it.
-   **PHP 8.6** came out in November 2026. Give packages a few months to catch up before you depend on it in production.
-   **PHP 8.3** only buys one more year. Move to it only as a stepping stone, for example when a key package is not ready for 8.4 yet.

## How to check what you run now

Before planning anything, find out where you are. On the server, `php -v` shows the command-line version, but the web server can use a different one. A small `phpinfo()` page (deleted straight afterwards) or your hosting control panel shows what your site really uses. In a Laravel application, `php artisan about` lists the PHP and Laravel versions together.

Check `composer.json` too. The `require.php` line and the versions of your main packages decide how far you can move without upgrading other things first.

## A safe upgrade plan

Most PHP upgrades go wrong for the same reason: the new version is switched on in production and problems are found by customers. A safer order is:

1.  **Copy the site to a staging environment** that matches production, including the database and the same web server.
2.  **Run a compatibility check.** Static analysis tools such as PHPStan, and PHPCompatibility rules for PHP\_CodeSniffer, find code that uses removed or deprecated features before you run anything.
3.  **Update Composer packages** to versions that support the target PHP version. This is often the biggest part of the work, especially for older Laravel versions or abandoned packages.
4.  **Fix what breaks.** Dynamic properties, changed function signatures and stricter type checks are common sources of errors when moving up from 8.2.
5.  **Test the important journeys:** sign-in, checkout or payments, forms, emails, scheduled jobs and queues, file uploads and any third-party API connections.
6.  **Switch production over** at a quiet time, with the old PHP version still installed so you can switch back in minutes if something unexpected happens.
7.  **Watch the error logs** for the first few days.

A small, well-kept Laravel or WordPress site can often move in a day or two. An older application with outdated packages, no tests and custom code can take a few weeks, because the framework itself may need upgrading first.

## If you can’t upgrade before 31 December

That is fine, as long as it is a decision and not an accident. In the meantime:

-   Keep everything else up to date: the framework, plugins, packages and the server’s operating system.
-   Put the site behind a web application firewall if it is not already.
-   Ask your host when they plan to remove PHP 8.2, so a forced change does not surprise you.
-   Set a date for the upgrade and put it in writing, so it does not drift into next year and the year after.

## Where we can help

We upgrade Laravel, WordPress and custom PHP applications to supported versions, and keep them patched afterwards. You get a written plan and a fixed price before work starts, a written update every day while it runs, and you keep full ownership of the code. If you are an agency with several client sites on PHP 8.2, we can work through them for you under your brand.

See our [.NET and PHP maintenance service](/dotnet-php-maintenance/), or read about [.NET 8 and 9 reaching end of support](/blog/dotnet-8-php-8-2-end-of-support/) if you run .NET as well.

## Need PHP 8.2 off your servers before the deadline?

Tell us what your application runs on: framework, PHP version and hosting. We reply within one working day with how big the upgrade looks and what a fixed-price audit would cost.

[Book a call](https://calendly.com/theahmadgroup/30min) [Email us](mailto:info@theahmadgroup.com)
