PHP 8.2 gets security fixes until December 31, 2026; from January 1, 2027 it is end of life. Move WordPress and WooCommerce sites to PHP 8.3 or 8.4.
Magento stores on 2.4.6 or older can’t simply switch: no PHP version they support is still maintained. Upgrade Magento to 2.4.8 (PHP 8.4) or 2.4.9 (PHP 8.5) first.
PHP support dates
Each PHP version gets two years of active support, with bug and security fixes, and then two years of security fixes only. The PHP project’s schedule for the versions that matter now:
| Version | Released | Active support until | Security fixes until |
|---|---|---|---|
| 8.1 | November 25, 2021 | November 25, 2023 | December 31, 2025 (ended) |
| 8.2 | December 8, 2022 | December 31, 2024 | December 31, 2026 |
| 8.3 | November 23, 2023 | December 31, 2025 | December 31, 2027 |
| 8.4 | November 21, 2024 | December 31, 2026 | December 31, 2028 |
| 8.5 | November 20, 2025 | December 31, 2027 | December 31, 2029 |
What “end of life” means for a site
Nothing switches off on January 1. The site keeps working; what stops is the PHP project’s security releases for 8.2, so a vulnerability found in 2027 stays open in the official builds. In practice:
- Security. Some Linux distributions and hosting providers backport fixes into their own PHP packages for longer. Ask your host whether yours does, and until when.
- Updates. Plugin, theme and extension vendors drop old PHP versions over time, so staying on 8.2 eventually freezes the rest of the site too.
- Compliance. If you take card payments, running software that no longer gets security patches makes PCI DSS compliance harder to maintain.
Which PHP version to move to
WordPress
WordPress recommends PHP 8.3 or newer, and its compatibility table marks current WordPress releases as compatible with PHP 7.4 through 8.5. Core isn’t the obstacle; plugins and themes are. Aim for PHP 8.4, which gets security fixes until the end of 2028, and settle for 8.3 if a plugin you depend on isn’t ready.
WooCommerce
WooCommerce recommends PHP 8.3 or newer and lists 8.4 as the newest version it is tested with. For stores, 8.3 or 8.4 is the safe range.
Magento
Here the PHP version is tied to the Magento version. These are the PHP versions Adobe lists for the latest patch of each release line:
| Magento | Supported PHP | On a maintained PHP from 2027? |
|---|---|---|
| 2.4.9 | 8.5 | Yes |
| 2.4.8 | 8.3, 8.4 | Yes |
| 2.4.7 | 8.2, 8.3 | Yes, on 8.3 (until December 31, 2027) |
| 2.4.6 | 8.1, 8.2 | No |
| 2.4.5 | 8.1 | No: PHP 8.1 ended on December 31, 2025 |
| 2.4.4 | 8.1 | No |
Magento 2.4.6 doesn’t support PHP 8.3, so switching PHP in the hosting panel isn’t an option: upgrade Magento first. 2.4.7 on PHP 8.3 buys about a year, since 2.4.7 itself leaves regular support on May 31, 2027. 2.4.8 on PHP 8.4 or 2.4.9 on PHP 8.5 lasts longer. Support dates for every version are in our Magento 2.4 end-of-life table.
What can break when you leave PHP 8.2
Code that runs cleanly on 8.2 usually runs on 8.3 and 8.4 unchanged. Problems come from older plugins, extensions and custom code. What to look for:
PHP 8.3
Few breaking changes. range() became stricter about its arguments, and a few things were deprecated: ++ and -- on empty or non-numeric strings, get_class() and get_parent_class() without arguments, and assert_options().
PHP 8.4
This is where most upgrade notices come from.
- Four extensions left the core. IMAP, OCI8, PDO_OCI and PSpell moved to PECL. Anything that reads mailboxes with the
imap_*functions, such as helpdesk or email-to-post plugins, stops working unless the extension is installed separately on the server. - Implicitly nullable parameters are deprecated. A signature like
function save(Order $order = null)now triggers a deprecation notice; it should read?Order $order = null. Older plugins are full of these. Deprecations are warnings, not errors, but they fill the logs and show up on the page if errors are displayed. - Smaller changes. The
E_STRICTconstant andtrigger_error()withE_USER_ERRORare deprecated,exit()now behaves like a regular function, andround()rejects invalid rounding modes.
PHP 8.5
No extensions were removed. Deprecations to watch: the backtick operator (an alias of shell_exec()), non-canonical casts such as (boolean), (integer) and (double), null used as an array offset, and __sleep() and __wakeup() (soft-deprecated). The disable_classes setting in php.ini was removed.
Leftovers from 8.2
Notices like “Creation of dynamic property … is deprecated” come from PHP 8.2 itself. They remain deprecations, not errors, in 8.3, 8.4 and 8.5, but they mark code that will need fixing eventually.
A safe upgrade, step by step
- Check which PHP the site really runs. In WordPress: Tools → Site Health → Info → Server. On the server,
php -vshows the command-line version, which can differ from the one serving your pages. - Update everything first. WordPress core, the theme and all plugins, or the Magento extensions, to their current versions. Remove what you don’t use and replace abandoned plugins.
- Make a staging copy and switch it to the target PHP version.
- Scan the custom code. Static analysis catches many incompatibilities before you click through anything: PHPStan with the target PHP version set, and Rector, whose PHP upgrade rule sets can also fix them automatically.
- Test the flows that make money, with error logging on: forms, logins, search, checkout, the admin, scheduled tasks and imports. Then read the logs:
wp-content/debug.logwithWP_DEBUG_LOGin WordPress,var/log/system.logandvar/log/exception.login Magento. - Switch production in a quiet hour. In most hosting panels, switching back is one click if something slipped through.
- Watch the logs for a week.
If you’d like a hand
We upgrade WordPress and Magento sites to supported PHP versions: audit, staging copy, fixes and release. For Magento stores that starts with a version upgrade, see Magento upgrades. For WordPress, send us the site address with the form below.
Sources
- PHP: Supported versions, Unsupported branches, migration guides for 8.3, 8.4 and 8.5
- WordPress: Requirements, PHP compatibility and WordPress versions
- WooCommerce: Server requirements
- Adobe: Adobe Commerce system requirements, release versions and support dates
Checked against these pages on November 24, 2026.