PHP 8.2 reaches end of life on 31 December 2026. From then on the PHP project publishes no more 8.2 releases, including for security bugs. Debian 12 and RHEL 8 and 9 keep patching their own 8.2 packages until 2028 and 2029. For most sites the better route is PHP 8.4, which has security fixes until the end of 2028.
On this page
When does PHP 8.2 reach end of life?
PHP 8.2 was released on 8 December 2022. Active support ended on 31 December 2024, and since then it has only had security fixes. That stops on 31 December 2026, according to php.net’s supported versions page.
| Branch | Security fixes until | Status on 2 Nov 2026 |
|---|---|---|
| PHP 8.2 | 31 Dec 2026 | Security fixes only, ending this year |
| PHP 8.3 | 31 Dec 2027 | Security fixes only |
| PHP 8.4 | 31 Dec 2028 | Active support until 31 Dec 2026 |
| PHP 8.5 | 31 Dec 2029 | Active support |
After that date the PHP project publishes no 8.2 releases at all, neither source code nor Windows builds. A PHP 8.2 site keeps running on 1 January 2027. What changes is that the next PHP security fix will only be released for the supported branches, 8.3 to 8.5.
The PHP2Shell release on 21 October is a recent example. PHP released fixed versions for 8.2 to 8.5 and, as an exception, minimal source backports for 7.4, 8.0 and 8.1. Branches older than 7.4 got nothing (options for 8.1 and older). PHP hasn’t said it will make such exceptions again.
Before you plan anything, patch what you run: install 8.2.36, released on 19 November 2026, or your distribution’s equivalent build. It fixes PHP2Shell (first fixed in 8.2.35) and 12 newer security issues, four of them critical (what 8.2.36 fixes). It may be one of the last 8.2 releases.
Who still patches PHP 8.2 after 31 December?
That depends on who built your PHP. Linux distributions patch the 8.2 packages in their own repositories, on their own schedule, and keep the old version number.
| Where your PHP 8.2 comes from | Who patches it after 31 Dec 2026 | Until |
|---|---|---|
Debian 12 (bookworm), package php8.2 |
Debian LTS (the PHP2Shell fix shipped as DLA-4848-1) | 30 Jun 2028, when Debian 12 LTS ends |
RHEL 8 and 9, php:8.2 application stream |
Red Hat | May 2029, according to Red Hat’s Application Streams life cycle |
AlmaLinux / Rocky Linux 8 and 9, php:8.2 stream |
Rebuilt from Red Hat’s packages | Follows the RHEL date |
| Ubuntu | No Ubuntu LTS ships 8.2. 22.04 has 8.1 and 24.04 has 8.3, so an 8.2 on Ubuntu comes from a third-party repository | Check that repository’s own policy |
cPanel EasyApache 4, ea-php82 |
cPanel hasn’t published an end date. Watch the package changelog (below) | Not published |
| Plesk, PHP 8.2 handler | Plesk labels end-of-life versions outdated and keeps them installable. Patched builds of outdated versions come from a paid extension | While the licence runs |
Official Docker php:8.2 images |
No one. The tags are no longer rebuilt | The last 8.2 release |
| Commercial extended support | The vendor | Set by the contract |
A distribution’s 8.2 only covers PHP itself. Your CMS or framework has its own support dates, and its newer releases already need PHP 8.3 (see below). Because a patched package keeps its 8.2.x number, version-based checks, ours included, will still flag it, and the package changelog is the only proof. Use these packages to keep sites safe while you move them, not as a place to stay.
Check whether your 8.2 still gets fixes
Look at the newest changelog entry. After each PHP security release for 8.3 to 8.5, a maintained 8.2 package should get a new entry within days or weeks. If none appears, assume yours isn’t maintained.
# Debian 12
apt changelog php8.2-common | head -5
# RHEL, AlmaLinux, Rocky (php:8.2 stream)
rpm -q --changelog php-common | head -5
# cPanel EasyApache 4
rpm -q --changelog ea-php82-php-common | head -5
# Plesk: build date of the 8.2 handler
/opt/plesk/php/8.2/bin/php -i | grep -i 'build date'
Does WordPress, Drupal or Laravel run on PHP 8.3 and 8.4?
Current releases of all three do. Drupal 11 and Laravel 13 no longer run on 8.2 at all.
| Software | Supports PHP 8.2 | Supports 8.3 / 8.4 | Notes |
|---|---|---|---|
| WordPress 7.0 and 7.1 | Yes | Yes | WordPress recommends PHP 8.3 or newer. Old plugins and themes cause most problems. |
| Drupal 10 (10.4 to 10.6) | Yes | Yes | Drupal 10 itself reaches end of life in December 2026. |
| Drupal 11 | No | Yes | Requires PHP 8.3 or newer. |
| Laravel 12 | Yes | Yes | Security fixes until 24 February 2027. |
| Laravel 13 | No | Yes | Requires PHP 8.3 or newer. |
Drupal 10 sites have both deadlines in the same month. Moving to Drupal 11 requires PHP 8.3 or newer anyway, so it makes sense to do the two upgrades together.
What breaks when you move from PHP 8.2 to 8.3?
php.net’s migration guide has the full list of backward incompatible changes and deprecations. These are the changes most likely to show up in application code:
range()throws aTypeErrororValueErrorfor some arguments it used to accept, andrange('9', 'A')now returns characters instead of numbers.- The date extension throws
DateErrorandDateExceptionsubclasses where it used to emit warnings or generic exceptions. - A class that uses a trait with static properties now gets its own copy of those properties instead of sharing the parent class’s.
- On an empty array,
$a[-5] = 'x'followed by$a[] = 'y'gives key-4, not0. - Code that recurses very deeply can throw an
Errornear the stack limit. - The
opcache.consistency_checkssetting is gone. Remove it from php.ini.
New deprecations only log a warning, so they don’t stop a site: ++ and -- on empty or non-numeric strings, get_class() and get_parent_class() without arguments, assert_options() with the assert.* settings, and ldap_connect() with a separate host and port.
If you go straight to 8.4 or 8.5, also read the 8.4 and 8.5 migration guides, which list further changes.
How to upgrade from PHP 8.2 to 8.4
Choose 8.4 when your software supports it: it has security fixes until the end of 2028, a year longer than 8.3. Fall back to 8.3 only for a site whose plugins or packages aren’t ready for 8.4. Try to finish by mid-December, so a problem found late still leaves time before 31 December.
-
List the sites on 8.2. In cPanel, open WHM » MultiPHP Manager. In Plesk, check the PHP version on each domain’s Hosting & DNS settings. On your own server, list the FPM services and where 8.2 is referenced:
systemctl list-units --type=service 'php*fpm*' grep -rl 'php8.2\|php82\|php/8.2' /etc/nginx /etc/apache2 /etc/httpd 2>/dev/null -
Check dependencies. In a Composer project, this lists the packages that don’t allow PHP 8.4:
composer why-not php 8.4On WordPress, update core, themes and plugins first. Then look at each plugin’s Requires PHP and Tested up to details; plugins that haven’t been updated in years are the likeliest to fail.
-
Test a staging copy on the new PHP with full error logging, and go through the main pages, forms, checkout and scheduled jobs:
error_reporting = E_ALL log_errors = On display_errors = OffDeprecation notices can be fixed later. Fatal errors and
TypeErrors have to be fixed before you switch. -
Switch one site at a time in the panel or the FPM pool, and leave 8.2 installed for a few days in case you need to switch back.
-
Confirm the version the site really uses. The web server can run a different PHP from the command line (how to check). When every site is moved, uninstall 8.2 so no one selects it by mistake.
What if a site can’t move to 8.3 or newer in time?
Run it on an 8.2 that someone still patches. That means a Debian 12 or RHEL, AlmaLinux or Rocky 8 or 9 package, or a commercial extended-support build (in Plesk, through its extension catalog). After each PHP security release, check that your build’s changelog or the vendor’s advisory names the new CVE IDs.
Until the site is upgraded, keep its exposure low. Apply the interim mitigations, and put admin areas and internal tools behind a VPN, an IP allow-list or basic auth. Give the upgrade a firm date, because every PHP security release from January on is one your 8.2 site won’t get from php.net.
Rather not do it yourself? Upgrade planning for end-of-life PHP is part of our complex-setups service, from €249, scoped on a call.
Sources
- php.net — Supported versions
- php.net — Unsupported branches (end of life)
- php.net — Migrating from PHP 8.2 to 8.3: backward incompatible changes
- php.net — Migrating from PHP 8.2 to 8.3: deprecated features
- Debian wiki — Long Term Support (release dates)
- Red Hat — Enterprise Linux Application Streams life cycle
- Plesk documentation — Securing outdated PHP versions
- WordPress — PHP compatibility and WordPress versions
- Drupal — PHP requirements
- Laravel — Release notes and support policy