The supported-versions table on php.net gives 31 December 2026 as the last day of security support for PHP 8.2. From 1 January 2027 the PHP project will not ship any more fixes for that branch, whatever is found in it. As of 27 Nov 2026 the newest 8.2 release is 8.2.36, from 19 Nov 2026; that may well be the last one.
A website does not stop working on 1 January. The risk is quieter: every flaw discovered after that date stays open on your server. This year alone PHP had two critical remote code execution flaws (covered on our PHP security releases page), which shows why running a branch with no fixes is a real exposure and not a box-ticking issue.
How PHP support works
The PHP project gives each branch four years in total:
- Two years of active support from the first stable release: regular bug-fix and security releases.
- Two more years of security-only support: fixes for critical security issues only, released when needed. Some months may bring several releases, others none.
- Then end of life: no more releases from the project.
The end dates in the table fall on 31 December, so a branch always finishes with the calendar year.
Support dates for every current branch
From the php.net supported-versions page, checked on 27 Nov 2026:
| Branch | First release | Active support until | Security support until |
|---|---|---|---|
| 8.2 | 8 Dec 2022 | 31 Dec 2024 | 31 Dec 2026 |
| 8.3 | 23 Nov 2023 | 31 Dec 2025 | 31 Dec 2027 |
| 8.4 | 21 Nov 2024 | 31 Dec 2026 | 31 Dec 2028 |
| 8.5 | 20 Nov 2025 | 31 Dec 2027 | 31 Dec 2029 |
| 8.6 | 19 Nov 2026 | 31 Dec 2028 | 31 Dec 2030 |
PHP 8.1 and anything older is already out of support.
Which version should you move to?
- PHP 8.3 buys one year only: it is already in security-only mode and ends on 31 Dec 2027. Choose it only if a library or plugin blocks anything newer, and plan the next step now.
- PHP 8.4 is a solid default for business systems: well tested, widely supported by hosts and libraries, and covered until the end of 2028.
- PHP 8.5 gives the longest runway among mature branches (to the end of 2029). A good choice if your framework and packages already support it.
- PHP 8.6 was released on 19 Nov 2026. It is supported the longest, but some packages may not yet declare support for it. It suits new projects more than a rushed migration in December. Details on our PHP 8.6 page.
If the system is built on Laravel, the framework sets the limits: Laravel 13 supports PHP 8.3 to 8.5. Laravel 12 is in its security-only period until 24 Feb 2027, so a Laravel 12 system on PHP 8.2 has two deadlines close together. Our Laravel 13 upgrade page covers the framework side.
Before you switch: a short checklist
- Know what runs where. List every site and system on the server and the PHP version each one uses. The command-line version (
php -v) may differ from the one serving the website. - Read the project's constraint. In a Composer project, the
"php"entry incomposer.jsonand your locked packages decide what is allowed. Composer can tell you what blocks a target version:
# Which installed packages refuse PHP 8.4?
composer why-not php 8.4
- Check extensions. Make sure every extension the code uses exists for the new version on your server. For example, PHP 8.4 moved the IMAP extension out of the core distribution, so code that reads mailboxes through it needs the extension installed separately or replaced.
- Fix deprecations early. Deprecation notices do not break a site, but they become errors in later major versions. PHP 8.4, for instance, deprecated parameters that are implicitly nullable through a
nulldefault without a?type. The official migration guides list every change per version. - Test on a copy. A staging copy with production data (anonymised if it holds personal data) and the new PHP version, before touching the live site.
Switching the version
On cPanel shared hosting
Most cPanel hosts let you choose the PHP version per domain in MultiPHP Manager: tick the domain, pick the version from the list and apply. Menu names can differ slightly between hosts. Switch one site first, check it, then move the rest. If 8.4 or newer does not appear in the list, ask your provider when they will offer it.
On a server you manage
Install the new version alongside the old one, point one site's PHP-FPM pool to it, and keep the old version installed until you are sure. That gives you a one-line rollback. Remember queue workers, cron jobs and CLI scripts: they often call a fixed PHP binary and get missed.
After switching
Open the key pages, sign in, submit a form, upload a file, run any scheduled jobs once, and watch the error log for a day or two.
We manage these upgrades on the servers we host for clients through our hosting and servers service. If your system is old or was built by someone else and you are not sure it will survive the jump, contact us and we will look at it before 31 December.
FAQ
Will my website stop working on 1 January 2027?
No. PHP 8.2 keeps running exactly as before. What stops is new fixes, so any flaw found after that date remains in your server.
My host says they will keep PHP 8.2 secure. Is that enough?
Some Linux distributions and vendors offer patched builds for branches after the PHP project stops. That can bridge a gap, but it depends entirely on that provider, and libraries will drop the old branch over time. Treat it as temporary.
Can I jump straight from 8.2 to 8.5?
Usually yes, as long as you read the migration notes for every version in between (8.3, 8.4 and 8.5) and your packages support the target. Skipping versions saves a second upgrade later.
How long does an upgrade take?
It depends on the size of the system, its test coverage and how old its packages are. A small, maintained site may take an hour; an old custom system can need days of fixes. A test on a staging copy gives the real answer.
Which branch is the safest choice today?
Any branch in the table above with its latest release installed. For long life, 8.4 or 8.5 is the practical choice for most existing systems.