PHP 8.2 end of life: what it means for WordPress, WooCommerce and Magento
Security support for PHP 8.2 ends on 31 December 2026. For WordPress and WooCommerce, moving to PHP 8.3 or 8.4 is mostly a matter of checking and testing. Magento 2.4.6 is not approved for newer PHP versions, so there the route goes through a Magento upgrade.
- Author
- Semen Kheyfets
- Published
- 23 November 2026
- Reading time
- 9 minutes
- Topic
- Operations and performance
PHP 8.2 end of life is 31 December 2026. From then on, the PHP project publishes no more security updates for this version. Your website keeps running on 1 January, but every newly discovered vulnerability in PHP 8.2 stays open.
For WordPress and WooCommerce, the job is to check plugins and theme, switch a staging copy to PHP 8.3 or 8.4, test, then go live. For Magento, the answer depends on the Magento version. Magento 2.4.6 is only supported up to PHP 8.2, so it cannot move on without a Magento upgrade.
PHP 8.2 end of life: what changes on 31 December 2026
Every PHP release line gets two years of active support with bug fixes, then two more years of security fixes only. That is how the PHP project describes it on its Supported Versions page. PHP 8.2 was released on 8 December 2022, active support ended on 31 December 2024 and security support ends on 31 December 2026.
| PHP version | Active support until | Security support until |
|---|---|---|
| 8.2 | 31 Dec 2024 | 31 Dec 2026 |
| 8.3 | 31 Dec 2025 | 31 Dec 2027 |
| 8.4 | 31 Dec 2026 | 31 Dec 2028 |
| 8.5 | 31 Dec 2027 | 31 Dec 2029 |
As of 16 November 2026, source: php.net.
Nothing happens technically on the day itself. No server shuts down, no site goes offline. The risk grows quietly instead: if a vulnerability in PHP itself becomes known, there is no official fix for 8.2. At the same time, plugin and extension vendors keep raising their minimum requirements. WooCommerce, for example, will require at least PHP 8.1 from version 11.6, planned for February 2027 (WooCommerce developer blog). Stay on an old PHP version for too long and you eventually get stuck on old plugin versions as well.
How to find your PHP version
In WordPress, the version is listed under Tools > Site Health > Info, in the Server section (WordPress documentation). WooCommerce also shows it in its system status report under WooCommerce > Status.
Magento does not show the PHP version in the admin. On the server, php -v returns the command-line version. That can differ from the version the web server uses to deliver pages, and cron jobs sometimes call yet another PHP binary. Check all three, or ask your host to tell you.
On shared hosting you usually set the PHP version per domain in your host's control panel. If you run several domains, subdomains or a staging site, look at each one. It happens that the main site has long been on a current version while a forgotten blog or the staging environment still runs an old one.
Upgrading PHP for WordPress and WooCommerce
WordPress itself is rarely the problem. According to the WordPress core team's compatibility table, WordPress runs on PHP 8.4 from version 6.7 and on PHP 8.5 from 6.9. The official requirements recommend PHP 8.3 or later. WooCommerce's server recommendations also recommend PHP 8.3 or later and list PHP 8.4 as tested.
The risk sits in plugins, themes and custom code. A plugin that has not been updated in years, an old page builder version or a snippet in functions.php can throw warnings under a newer PHP version or stop the page with a fatal error. WooCommerce adds payment and shipping plugins to the list, and those are exactly the ones that have to work after the switch.
This is the order in which we upgrade PHP on a WordPress site:
- Update WordPress, the theme and all plugins while still on the old PHP version. The latest plugin releases are usually the ones with the best support for newer PHP versions.
- Remove or replace plugins that are no longer needed or have not been updated for a long time.
- Set up a copy of the site on a staging environment running PHP 8.3 or 8.4.
- Turn on the error log there (
WP_DEBUG_LOG) and go through the important paths: forms, search, cart, checkout with every payment method, customer account, emails. - Fix the errors and warnings from the log, or replace the plugin that causes them.
- Take a backup, switch the live site and watch the log and incoming orders on the same day.
Keep the error log on staging only. On a live site the log file can end up publicly accessible, and the WordPress Site Health screen warns about exactly that.
If nobody on your side is responsible for these updates, we handle them as part of maintenance: updates on a staging environment first, backups off the server and a monthly report.
Magento: the PHP version follows the Magento version
With Magento you cannot pick your PHP version freely. Adobe's system requirements define which PHP versions each release line is tested and supported with.
| Magento version | Supported PHP versions | After 31 Dec 2026 |
|---|---|---|
| 2.4.6 | 8.1, 8.2 | no supported PHP version left, Magento upgrade needed |
| 2.4.7 | 8.2, 8.3 | move to PHP 8.3 |
| 2.4.8 | 8.3, 8.4 | 8.3 or 8.4, both still supported |
| 2.4.9 | 8.5 | not affected |
System requirements as of 13 October 2026. For 2.4.9, Adobe's release notes state that PHP 8.2 and 8.3 are no longer supported and that PHP 8.4 is allowed for upgrade purposes only.
So a shop on Magento 2.4.6 cannot simply switch to PHP 8.3. On top of that, regular support for 2.4.6 already ended on 11 August 2026 (Adobe, Released versions). From 1 January 2027 both Magento and PHP run without regular support there, and the two can only be fixed together: upgrade Magento to 2.4.8 or 2.4.9 and move PHP along with it.
For 2.4.7, PHP 8.3 is the next step. It buys time, but not much, because regular support for 2.4.7 ends on 31 May 2027. In its lifecycle policy, Adobe also makes clear that it does not provide security or quality fixes for dependencies such as PHP and MySQL, and that merchants are responsible for keeping track of the support status of their PHP version. How we approach Magento upgrades is described on our Magento agency page.
Before you move to PHP 8.3 or 8.4: the checklist
If the theme, plugins and extensions allow it, we prefer to go straight to PHP 8.4. It receives security updates until 31 December 2028, one year longer than 8.3, which pushes the next switch further out. Where an important plugin or the Magento version does not support 8.4 yet, 8.3 is the safe intermediate step.
Before switching, we check these points:
- For every plugin and extension, the installed version, the date of its last update and the PHP versions the vendor states.
- Encoded commercial extensions. They only run if a matching loader exists for the new PHP version and the vendor ships a compatible release.
- Custom code in the theme, in your own plugins and in Magento modules, with static code analysis against the target version and on staging.
- Deprecated language features. Among other things, PHP 8.4 deprecates implicitly nullable parameters such as
function foo(T $a = null)(PHP manual). Nothing breaks, but the error log fills up until the code is fixed. - PHP extensions. With PHP 8.4, IMAP, OCI8, PDO_OCI and Pspell moved out of the PHP distribution to PECL (PHP manual). A plugin that fetches email over IMAP then needs an extra extension installed, and on shared hosting that is the host's decision.
- Command line and cron jobs. They need the same PHP version as the web server, otherwise imports, indexers and scheduled tasks keep running on the old one.
- For Magento, the platform setting in
composer.json(config.platform.php), if it is set. - A way back: a backup before the switch and the option to set the PHP version back at your host at short notice.
What hosts do after 31 December 2026
German hosts such as STRATO and IONOS do not simply switch old PHP versions off. They offer paid extended support, in which they patch security holes in the old version themselves.
According to its PHP Extended Support FAQ (in German), STRATO keeps providing PHP 8.2 free of charge until the end of January 2027 and charges for extended support from 3 February 2027. IONOS describes its PHP Extended Support as an add-on with a monthly fee that starts as soon as community support ends and is charged after a free transition period. Neither switches your PHP version automatically; both notify you by email.
Extended support is a reasonable buffer if the switch still needs work. It only solves the PHP problem, though, not the question of whether your plugins and extensions still receive updates on the old version. And it costs money every month until someone makes the switch.
On your own server, nobody installs a new PHP version for you. Someone has to install PHP 8.3 or 8.4 next to the old version, move the site over and remove the old version afterwards. Some Linux distributions maintain their PHP packages for longer than the PHP project does. Whether that applies to your server is something only your host or administrator can tell you.
PCI DSS: why shops taking card payments should look closer
If you accept card payments, you have to meet the requirements of the card industry standard PCI DSS. In its lifecycle policy, Adobe flags a PCI risk from the end of 2026 for Magento 2.4.6 on PHP 8.2 and advises completing an upgrade or migration before then. For PHP 8.1, unsupported since 31 December 2025, Adobe explains the reasoning: vulnerabilities in PHP may no longer receive fixes, which puts PCI compliance at risk.
According to Adobe, the assessment is the merchant's responsibility, and Adobe recommends involving your qualified security assessor. How far PCI DSS applies to a WooCommerce or Magento shop depends on how payments are integrated. That is a question for your payment provider or your assessor; we assess the technology. Technically the situation is simple: a PHP version without security updates is a finding that is hard to explain in any review.
How we handle the switch
For a WordPress site with well-maintained plugins, the switch is usually a manageable job: check, test, switch. It takes more work with many plugins, custom code or a shop whose checkout must not fail. On Magento 2.4.6, the PHP switch is part of a Magento upgrade and is planned as one.
If you do not know where your site stands, the website audit shows versions, extensions, risks and the effort for each item. It starts at €690 for websites and €990 for shops, excl. VAT, and is credited if you commission us. The switch itself is billed by the hour, from €90 per hour. If you want to hand over updates for good, we offer them as maintenance you can cancel monthly.