- The date: PHP 8.2 gets its last security fixes on 31 December 2026. From January, a new critical bug in PHP 8.2 stays open.
- Why now: the last two PHP releases, in October and November, both carried critical fixes. There is no reason to expect January to be quiet.
- Who it affects: any product on PHP 8.2, and everything older. PHP 8.1 and earlier already get nothing.
- The Laravel clock: Laravel 13 needs PHP 8.3 or newer, and Laravel 12 stops getting security fixes on 24 February 2027.
- Where to go: PHP 8.4, supported until the end of 2028.
- What it takes: from 8.2 with a current framework, a short planned project. From 8.1 or older, a bigger one, because the framework and packages move with it.
What PHP 8.2 end of life actually means
PHP versions follow a fixed schedule. Each one gets two years of normal support, then two years of security fixes only, and then nothing. PHP 8.2 came out in December 2022, so its four years end on 31 December 2026.
Nothing happens on 1 January. Your site keeps working, the server does not switch off, and no warning appears. That is what makes end of life easy to ignore. The change is in what happens the next time a serious bug is found in PHP itself. Teams on supported versions install a patch. Teams on PHP 8.2 read the advisory and find no version to install.
This is not hypothetical. In October, PHP2Shell brought two critical bugs in the PHP engine. In November, PHP fixed seven more. Teams on PHP 8.1 went through both releases with no patch for their version. From January, PHP 8.2 joins them.
The Laravel deadline runs alongside
If your product is built on Laravel, there is a second date. Laravel gives each major version 18 months of bug fixes and two years of security fixes. Laravel 12, which still runs on PHP 8.2, gets security fixes until 24 February 2027. Laravel 11 lost them in March 2026.
Laravel 13 requires PHP 8.3 or newer. So for a Laravel 12 product on PHP 8.2, the two deadlines point the same way: move PHP to 8.4 first, then move Laravel to 13. Doing both in one planned piece of work is cheaper than doing them as two emergencies eight weeks apart.
For a product on Laravel 10 or older, the PHP version is usually the smaller problem. The framework has been out of support for a while, and so have many of the packages around it.
| Laravel version | PHP versions | Security fixes until |
|---|---|---|
| Laravel 13 | 8.3 to 8.5 | 17 Mar 2028 |
| Laravel 12 | 8.2 to 8.5 | 24 Feb 2027 12 weeks |
| Laravel 11 and older | No longer supported. Plan the upgrade one major version at a time. | |
Can you stay on PHP 8.2 for a while?
Sometimes, for a limited time, and only if you know exactly why you are covered. Three situations make it reasonable.
- Your Linux vendor patches PHP for you. Debian 12 ships its own PHP 8.2 and its long-term support team has kept backporting fixes, including both PHP2Shell bugs in October. If your server runs such a release and installs its updates, you have more time. Ask whoever runs the server to confirm it, in writing, for your exact setup.
- You pay for extended support. Several companies sell security patches for PHP versions the project no longer supports. It is a reasonable bridge for a product that cannot move yet, and a recurring cost for one that never does.
- The upgrade is already booked. A product with a date in January and a tested branch is in a very different place from one with nothing planned.
What does not count as cover: a firewall in front of the site, the fact that nobody has attacked you yet, or well-written code. The bugs this autumn were in the PHP engine, underneath any code. A well-written application on an unpatched PHP is still exposed.
What a PHP 8.2 to 8.4 upgrade involves
A version upgrade is not like the monthly patch releases. A patch changes nothing your code can see. A version upgrade changes the language under the code, so some things that worked before now warn or fail. The size of the job depends almost entirely on where you start.
| Where you are | What moves | Size of the job |
|---|---|---|
| PHP 8.2, Laravel 12, packages current | PHP to 8.4, then Laravel to 13 | A short, planned project. Mostly testing |
| PHP 8.2, Laravel 10 or 11, packages behind | PHP, then Laravel one major version at a time, and the packages that block each step | A medium project, scoped after a look at the code |
| PHP 8.1 or older, Laravel 9 or older | All of the above, plus code written for old PHP behaviour and packages that no longer exist | A project scoped per codebase, after an audit |
Most of the time goes to three things, and none of them is new features.
- Packages. Every library the product uses has to support the new versions. Most do. The ones that don’t are usually abandoned, and replacing them is where the surprises come from.
- Testing. A product with good automated tests can be upgraded with confidence. One without them needs someone to click through the flows that matter: sign-up, payment, the reports people rely on. That is slower, and it is most of the cost on older products.
- The servers. The new PHP version has to be installed on every server, background worker and scheduled job that runs the code, including the ones nobody remembers until they fail.
Tell us what you run. You’ll get a reply within 1 business day with what we would check first and what the upgrade would take.
An upgrade plan that does not break the product
- Find out exactly what you run. The PHP version on every server, the Laravel version, and the list of packages with their versions. It takes an hour and answers most questions about cost.
- Patch to 8.2.36 now. It has November’s fixes and keeps you safe while the upgrade happens.
- Upgrade in a branch, not on production. Move PHP to 8.4 and update the packages until the application runs and the tests pass.
- Test on a copy of production. The same server setup, realistic data, and the flows that make money.
- Release with a way back. Keep the old version ready to switch to for the first days, then remove it.
- Then move Laravel, one major version at a time if you are several behind, using the same steps.
- Put the next date in the calendar. PHP 8.4 is supported until the end of 2028. The cheapest upgrade is the one done before it is urgent.
Three questions to send your developer
- Which exact PHP version runs on each of our servers, including background workers and scheduled jobs?
- Which Laravel version are we on, and are any of our packages blocking an upgrade?
- If PHP 8.2 stopped getting fixes tomorrow, who would patch us, and how?
If the answers come back quickly and agree with each other, you are in good shape. If they don’t, that is the finding. And if there is nobody to send them to, because the developer who built the product has moved on, read what the first three weeks of a takeover look like.
What to do before 31 December
- On PHP 8.3 or newer: nothing urgent. Plan the move off 8.3 for next year.
- On PHP 8.2: install 8.2.36 now and book the upgrade to 8.4 for December or early January.
- On PHP 8.1 or older: you are already unpatched. Get an audit and an estimate this month.
Upgrades like this are part of what our maintenance and support work covers, and for products left behind by another team, our takeover and rescue service starts with exactly these questions. If you would rather nobody had to remember the next date, that is what the Care & growth retainer is for.
For what keeping a live product current looks like over years, read how Maptive went from one hand-deployed server to releases customers never notice.
Quick answers
When does PHP 8.2 reach end of life?
PHP 8.2 receives security fixes until 31 December 2026. After that date the PHP project releases no further fixes for it, including for critical vulnerabilities.
What happens to my site when PHP 8.2 reaches end of life?
Nothing visible. The site keeps working. The risk is that security bugs found in PHP after that date are not fixed in 8.2, so a server running it stays exposed.
Which PHP version should I upgrade to from 8.2?
For most products, PHP 8.4. It gets security fixes until 31 December 2028 and is supported by Laravel 12 and Laravel 13. PHP 8.3 is supported only until the end of 2027.
Does Laravel 13 support PHP 8.2?
No. Laravel 13 requires PHP 8.3 to 8.5. Laravel 12 supports PHP 8.2 to 8.5 and gets security fixes until 24 February 2027.
How long does a PHP 8.2 to 8.4 upgrade take?
For a Laravel 12 application with up-to-date packages and automated tests, it is usually a short, planned project that is mostly testing. Older framework versions, outdated packages and missing tests are what make it larger.
My hosting provider says it still patches PHP 8.2. Is that enough?
It can be, for a while. Some long-term Linux releases, such as Debian 12, ship their own PHP 8.2 and keep backporting security fixes, and some companies sell extended support. Ask your provider to confirm it for your exact setup, and plan the upgrade anyway.
Sources
Version numbers, dates and commands in this article come from the primary sources below. Check them before you act, since advisories are updated.
- PHP: supported versions and end-of-life dates
- Laravel News: Laravel release cycle and support policy
- Debian LTS: php8.2 security update for PHP2Shell, October 2026
- Debian security tracker: php8.2
Want this handled for you? Codebase takeover & rescue · Cloud & DevOps on AWS · Security hardening · Maintenance & support
Serhii runs Shapelab, a web and mobile development agency in Tallinn, Estonia. The team builds web products, takes them over from other teams and looks after them in production, servers included.