Fluxtail
PHP and WordPress

PHP 8.2 End of Life and What It Means for WordPress

PHP 8.2 security support ends December 31, 2026. Check your WordPress PHP version and test a form and a scheduled job before upgrading.

By Fluxtail Engineering

WordPress is software for publishing and managing websites. It uses PHP, a programming language that runs on the web server. WordPress itself, its themes and its plugins all depend on PHP. Changing the PHP version can affect a contact form or scheduled report even when the homepage still loads. WordPress’s PHP update guide

On November 28, 2026, Adam Greenough compared the PHP versions that WordPress installations reported when checking for updates with the PHP project’s support calendar. A PHP branch is a version line such as 8.2. In Greenough’s snapshot, roughly 31% of installations used branches that had already lost official support and another 22% used PHP 8.2. Together, that would put about 53% of the installations in the snapshot past official support on January 1, 2027 if the mix stayed the same. The PHP project lists December 31, 2026 as the last day it will support PHP 8.2 with security fixes. Greenough’s analysis · WordPress.org PHP statistics · PHP support calendar

Sites running PHP 8.2 can keep serving pages after the deadline. The PHP project will stop releasing security fixes for 8.2, so sites that stay on it will depend on any extra coverage from their host or Linux distribution for future fixes. That coverage depends on the package the site runs. The snapshot counts version lines and cannot show which patches a site has installed or how many sites will still use PHP 8.2 in January.

How to rehearse a WordPress upgrade from PHP 8.2

If you maintain a site on PHP 8.2, use a private test copy of the site, called staging, to try a supported PHP version. Run the same form and scheduled task before and after the switch. That shows whether those actions work on each PHP version. Give other critical plugins and jobs their own checks.

Check the PHP version serving WordPress

In the WordPress admin dashboard, open Tools → Site Health → Info → Server and record the PHP version on production and staging. This is the version that handled the request for the Site Health page. If several servers handle requests for the site, verify the version on each one through your host or deployment inventory. WordPress Site Health documentation

If a scheduled job starts PHP from the command line, check the job’s configured command first. Then run php -v with the same PHP executable and environment the job uses. Your login shell may use a different PHP binary. For a managed job runner, check its settings or ask the provider. If a scheduler calls the site over HTTP, check the PHP version that handles that web request. PHP command-line options

Back up the site and choose a PHP version to test

Back up the database and site files, and confirm that you can restore them. Find out how to change PHP on staging and how to switch production back if a critical test fails. Choose a version your host offers that still gets security fixes and works with your WordPress release. Check the requirements for your plugins and theme too, including any PHP extensions they need. PHP 8.4 is one candidate if those checks pass. WordPress PHP update guide · WordPress Core compatibility matrix · PHP support calendar

Run the same form and scheduled task before and after

Keep WordPress, the plugins and the theme at the same versions for the first two runs. Route staging mail to a test inbox and use made-up form data. Give each run a new label so you can tell a fresh email or report from an old one. Record when each run starts and ends, the PHP version in Site Health and the job runner’s PHP version if it uses a separate executable.

In this illustrative rehearsal, a WordPress site has a contact form and a scheduled report. Both run through the web server. The PHP 8.4 setup is missing mbstring, the extension the example form plugin uses to work with multibyte text. PHP mbstring documentation

Check Baseline on PHP 8.2 First run on PHP 8.4 Rerun after enabling mbstring
PHP version in Site Health 8.2.x 8.4.x 8.4.x
Homepage Loads Loads Loads
Contact form Test message arrives in the staging inbox Submission fails and no message arrives New test message arrives in the staging inbox
Scheduled report New report includes the test record added before the run New report includes the test record added before the run New report includes the test record added before the run

Read the error and verify the fix

Start with the host’s staging PHP error log. If you need more detail for a background job, turn on WordPress debug logging temporarily on private staging. WP_DEBUG_LOG requires WP_DEBUG. Set WP_DEBUG_LOG to a writable path outside the public web root and set WP_DEBUG_DISPLAY to false. Limit access to the file and turn debugging off after the rehearsal. If the form returns a 500, use the request time to find the matching PHP error. WordPress debugging guide · How to trace a server error 500

In the example, the form stops when the plugin calls mb_strtolower(), a function supplied by mbstring. Check whether the extension is enabled for the PHP version that serves the site. After enabling it on staging, submit the form again and check the inbox for the new message. Run the scheduled task again and open the new report to verify that it includes the test record. A quiet error log can mean the failing code never ran or the error was recorded elsewhere. PHP mbstring documentation

Compare the three runs in a staging log stream

The three JSON records below are illustrative. The first is a manually recorded result after the baseline email arrives. The second is a sanitized PHP error excerpt with a fictional plugin name. The third records the successful rerun after mbstring is enabled and uses a fresh label.

{"message":"wp82-baseline-01 | contact form | test message arrived in staging inbox"}
{"message":"wp84-upgrade-01 | contact form | Pine Contact | PHP fatal error: Call to undefined function mb_strtolower()"}
{"message":"wp84-retest-02 | contact form | mbstring enabled | new test message arrived in staging inbox"}

To compare these records in Fluxtail, send each JSON object in its own HTTPS POST to the exact HTTP receiver URL routed to a separate staging stream. Use Content-Type: application/json and the receiver’s Bearer token. The receiver accepts records you send. It does not collect WordPress errors automatically. Copy only the details needed to explain the test result and leave out form contents, credentials and full stack traces. A 202 means Fluxtail accepted the record for processing. To check that it arrived, open the staging stream, select the time range when you sent each record and search for its label. Compare the matching row with the inbox or report result from the same run. Fluxtail’s HTTP JSON ingestion example

Repeat the checks after switching production

Once the staging checks pass, schedule the production switch for a time when you can test it and switch back if needed. Check Site Health again, confirm the job runner’s PHP version if it runs separately, and repeat the critical tests with controlled test data. If a critical test fails, capture the error and follow the agreed rollback procedure. Confirm the PHP version after the rollback and repeat the failed test. If the site is back on PHP 8.2, treat that as temporary while you fix the compatibility problem.