Don't switch to PHP 8.6 until your hosting provider offers that version, core compatibility for your WordPress version has been documented, and your critical processes are working on the staging environment. As of November 24, 2026, PHP 8.6 will be released as a stable version, but for WordPress 7.1, the Core Compatibility Documented only up to PHP 8.5. WordPress 7.2, with its adjustments for PHP 8.6, is not yet final. If you need to upgrade to WordPress 7.1 now, PHP 8.5 is the obvious target for testing—but you’ll still need to test your own website to make sure it works.
PHP 8.6 and WordPress: Which combination works best?
PHP 8.6.0 was released as a stable version on November 19, 2026. However, that doesn’t answer the question of whether you should switch the PHP version of your WordPress website. Consider these three questions separately: Does your hosting provider offer PHP 8.6 for your hosting plan? Is this combination documented for your WordPress core version? And do your theme, plugins, custom code, and connected services work with this exact combination?
As of November 24, 2026, WordPress 7.1.5 is the current stable version. The hosting manual documents the complete Core Compatibility up to PHP 8.5. The core note states that WordPress 7.2, starting with Beta 5, is fully compatible with PHP 8.6. This statement regarding the development status does not constitute separate confirmation of the specific RC2 release date.
The WordPress release archive lists WordPress 7.2 RC2, dated November 18, 2026, among the pre-release versions. The archive entry thus refers to a test version, not a stable release of WordPress 7.2.
| Combination | Assigned Core Status | Practical Implications |
|---|---|---|
| WordPress 7.1.5 with PHP 8.5 | Full core compatibility for the WordPress 7.1 branch has been documented. | Consider it as a potential alternative and test your own website. |
| WordPress 7.1.5 with PHP 8.6 | No corresponding core compatibility has been documented for branch 7.1. | Do not assume that production approval has been granted based on the hosting provider's availability. |
| WordPress 7.2 RC2 with PHP 8.6 | The Core Note documents full compatibility starting with version 7.2 Beta 5. The archive lists RC2 as a pre-release version, not as a separate compatibility verification for that date. | Test each one individually, and then repeat the test with the final target combination. |
A lack of documentation doesn’t mean that WordPress 7.1.5 will necessarily fail under PHP 8.6. Conversely, even a documented core combination doesn’t guarantee that your store will process payments correctly or that your media plugin will handle images as expected. If you need to switch to WordPress 7.1 now, PHP 8.5 is therefore the obvious choice for testing. You can prepare for a switch to PHP 8.6 in parallel using an isolated copy without deploying the release candidate in a production environment.
Record Web and CLI Environments Separately
Before running your first test, make a note of the exact versions of WordPress, PHP, your active theme, and any installed plugins. Make a note of which plugins are active and what version of your own code is integrated—for example, in a child theme or a project-specific plugin. This way, you can later attribute any findings to the specific combination you tested, rather than simply noting „works with PHP 8.6.“.
Open the WordPress dashboard Werkzeuge → Website-Zustand → Bericht. The information about the server environment serves as the starting point for the Web runtime, which WordPress uses for browser requests. Separately, check which PHP versions WP-CLI and scheduled terminal jobs actually call. A terminal and a scheduled job can use different interpreters. Therefore, the PHP version from your interactive session does not match either the job's version or the website's version.
Check with your hosting provider not only to see if the target version is selectable, but also whether you can set it for the test site independently of the live site. Ask which extensions your installation actually uses, such as GD or Imagick for image processing. The same PHP version number isn’t enough for a fair comparison: if a different image editor is used in the copy, you may not be testing the processing path of the live site.
Confirm in advance whether the current PHP runtime will still be available after the migration and how to reactivate it. If you manage multiple websites, also clarify which installations this setting applies to. The guide explains the role that separate test environments play in choosing a plan: WordPress Hosting for Agencies. When changing versions, what matters is what your specific plan allows.
Prepare the staging environment and test changes one by one
First, back up the files and the database. The files include uploads, themes, and plugins, among other things; the database contains posts, settings, and—depending on your installation—order data. Try the Restoration in a separate environment. The fact that you can open the copy is an initial check. Also verify whether you can log in and whether the content and associated media are present.
In the copy, redirect production recipients and external write access to test destinations before triggering workflows. Use a test mailbox for forms, the provider’s sandbox for payments, and a separate test environment for external storage. If a separate destination is not available, disable production access and note that the relevant workflow cannot be fully tested in the copy.
First, run the critical processes using the existing configuration in the copy. If the initial test fails, check first whether, for example, a missing extension or a modified connection explains the difference. Document any discrepancies between the test and production environments. For example, a successful upload to local storage does not indicate whether the upload to the external storage used in production will work.
For a meaningful comparison, it is recommended to use only one component per step to change. If you’re upgrading both WordPress and PHP, first test the new core with the previous PHP version, provided it’s compatible. Repeat the same procedures after the PHP upgrade. If a test case that previously passed fails only after the upgrade, you can specifically investigate the new runtime and its configuration, rather than having to distinguish between a core update and a PHP upgrade at the same time.
Create a test matrix for critical processes
If you want to change the PHP version, base your test cases on your website’s actual functionality. For an editorial site, this begins with logging in and doesn’t end when you click „Save“: You won’t know whether the change has been saved until you reopen the page. An online store also requires an order test; workflows for extensions that aren’t in use do not belong in the matrix.
For each test case, enter the Start and Finish Combination from WordPress and PHP. You can find the details about the web environment in the website status report.
Use the same user role and the same test data for both runs. Here’s a suggestion for the editorial team: Log in with an editorial account, open a test draft, and change a clearly identifiable section of text. Check whether the preview shows the change. Then save the draft, exit the editor, and open it again: The new text should still be there.
For each test action, record the Target Result, the release relevance, and the findings for each version combination. Leave the findings fields blank until the respective run. For example, if the preview shows an old text version even before the migration, this is not evidence of a PHP 8.6 issue. However, this also does not mean that a workflow that is necessary for the editorial team but still contains errors has been approved.
Check image processing and external media storage
If your website uses images with the GD Editor For both test runs, upload the same JPEG with EXIF orientation 2, 3, or 4. Choose an asymmetrical image where incorrect orientation is noticeable. Record which editor actually processed the upload, whether the EXIF orientation was applied, and which generated image file you checked. A visible original or an output from Imagick does not constitute a valid GD test case.
Check the image generated by GD to see if the subject is visible and correctly oriented. According to the Core note, the previous GD mirror path could produce black images with these orientations when using the GD version updated in PHP 8.6. For the WordPress 7.2 development branch, the note documents the switch to imageflip(). The Imagick Editor was not affected by this specific bug. This note does not replace the need to check the specific release tag being used.
A second case under review involves media trays with a custom PHP stream wrapper. In Staging, trigger a process in which GD generates an image and the GD storage path saves that exact output to the test target via the relevant wrapper. Check the status of this save operation and then retrieve the exact object that was generated. A successful upload of the original is not sufficient if the GD output is saved locally or transferred via a different path.
In PHP 8.6, enter fclose(), file_put_contents() and copy() if a flush fails or the stream is closed false back. For the WordPress 7.2 development branch, the core note states that the GD memory path checks the corresponding return values. If the wrapper is missing stream_flush(), this path can therefore be image_save_error report this, even though the image data has been written.
An image that can be retrieved does not refute this error message. If both occur together, record the error status and the available image in the same report. If you are using purely local media storage without a separate wrapper, you do not need this additional check.
Test forms, orders, and background tasks
Test existing integrations with a complete process until you get the expected result. For example, use a contact form to send a message with a unique test ID. The confirmation page alone isn't enough: Depending on your setup, check whether the message arrives in the test inbox, whether the entry is saved, or whether both happen. This way, you'll also catch any errors that occur only after the message is sent.
For a store, specify in advance what status a test order should have after payment is successfully processed. Place the order using test data and verify the actual status in the store. If the payment service reports completion via a callback, use the payment sandbox to verify this step as well. A visible order confirmation does not replace the callback: what matters is whether the order subsequently reaches the intended status.
For scheduled tasks, select a job whose results you can verify, such as sending a scheduled report to a test mailbox. Before the test, note when the report is expected and how you will distinguish it from a previous delivery. Verify that the job in the staging copy is configured to use the test mailbox.
If you use a list of planned events for tracking purposes, treat it as an inventory, not as Proof of Implementation. An entry does not replace the need to verify whether the selected job has produced the expected result.
Run the task using the method intended for your installation, and then check the result—in this case, the actual output of the report. If the job is started via a separate terminal process, also log its PHP version for this test. Otherwise, a successful run might have occurred under the previous runtime environment.
If a test fails, note which step worked last. „Order created, expected payment status missing“ pinpoints the error more precisely than „Store isn’t working.“ If, on the other hand, the result is missing in both test runs, first check whether the test target is set up correctly. Only then can the issue be meaningfully attributed to the version change or the test environment.
Assign errors to the correct runtime
If a media upload fails in the browser but a terminal job is running, first check which version of PHP executed the operation. The Web runtime You can find this in the WordPress admin panel under Tools → Site Health → Report. For WP-CLI and scheduled terminal jobs, however, the interpreter that the respective command actually uses is what matters. A successful command in the terminal therefore does not necessarily mean that the upload will work in the browser using the same PHP version.
Run these commands in the staging terminal: php -v displays the version of the PHP interpreter that is being used, php --ini lists its configuration files and php -m lists its loaded modules. Compare the CLI output with the information in the website status, to the extent that it is visible there. For a scheduled terminal job, also check its invocation: If it specifies a fixed interpreter path, the PHP version from your interactive shell is not automatically used.
To reproduce the error, first use the Error logs the staging environment. Check with your hosting provider to determine which log corresponds to browser requests for the test site and where you can find the output of a terminal job that was started separately. If you temporarily expand logging for diagnostic purposes, protect the logs from unauthorized access and revert the additional settings after the test.
When repeating the test case, note the time, the specific action, and the observed result. This way, you can assign a report to the upload or the job, rather than treating every entry from the same time period as the cause. If the error occurs in only one environment, first check for differences in the interpreter, modules, and configuration before attributing it to the PHP version change.
If you want to understand what happens in a web application between a browser request and PHP execution, the article on Executing PHP Requests and the Role of Workers the background. However, the results of your own test cases will show whether your specific WordPress installation works with PHP 8.6.
Treat deprecations and feature breakages differently
A Deprecation indicates that a function or behavior being used is classified as obsolete. It does not, on its own, indicate a functional failure. If a form saves the expected data record and the test email is received, the process has achieved its intended result, even if the log contains a note regarding necessary adjustments. If the data record is missing, however, the test has failed—regardless of what message appears in the log.
A specific example in your own code would be a call to spl_object_hash(): PHP 8.6 marks the function as deprecated. spl_object_id() This could be a viable alternative, but it returns an integer instead of a string. If your code performs a strict comparison of the return value with a string, it is therefore not enough to simply replace the function name. The same applies if a downstream interface expects the value to be a string.
Before making the change, determine where the value is compared, passed on, or stored. For example, if your own code outputs it as JSON, check whether the recipient can handle a number instead of a string. After making the change, repeat the process that triggers the call. A message that has disappeared does not necessarily mean the test has passed if the recipient no longer processes the data afterward.
Keep track separately of whether a test has passed and whether code still needs to be updated. The PHP 8.6 announcement refers to the migration guide for the most recent version update. If you’re switching from an older branch, don’t limit your testing to just this update. Plan for additional test cases for changes that affect your code or extensions throughout the entire journey from the source version to the target version.
Switch PHP versions or stick with the current one for now?
Do not approve the change until all processes critical to your website have been Target Combination have reached their target, and the return process has been clarified. A reachable landing page is not enough if orders are not assigned the correct status until payment confirmation is received, or if a scheduled job has not yet returned a result. Treat an unfulfilled mandatory task as pending, not as completed.
As of November 24, 2026, WordPress 7.1 allows you to stick with a tested and still-supported PHP version. If you need to switch PHP versions, PHP 8.5 is an obvious choice for testing: core compatibility is documented for this version. If you want to prepare for PHP 8.6, you can test WordPress 7.2 as a pre-release version in an isolated environment. Repeat the release testing after the final release using the versions that will actually go live.
Official security support for PHP 8.2 ends on December 31, 2026. If your website is still running on this branch, plan and test the migration before that date. You don’t have to jump straight to PHP 8.6: Choose a branch that’s still supported and has documented compatibility with your WordPress core, and test your critical workflows on it.
Plan the PHP Rollback This is separate from restoring a backup. When you revert, you restore the previous runtime; this does not roll back the files and database to an earlier state. Before proceeding, check whether the old runtime is still selectable with your hosting provider and whether the WordPress version and plugins currently in use will still function with it.
A backup restore, on the other hand, can reset the data. If you restore an older database copy in a store, orders and status changes that have been added since the backup may be missing. Therefore, determine in advance who authorizes a restore and how recent write operations will be handled. If the only issue is with the PHP runtime, that’s no reason to restore an older database state as a precaution.
Sources and Current State of Knowledge
Status of the research:
As of November 24, 2026, PHP 8.6.0 and WordPress 7.1.5 are stable releases. The WordPress release archive lists WordPress 7.2 RC2, dated November 18, 2026, as a release candidate, not a stable release. Before making the switch, check the version status again and repeat the release tests using the actual target combination.
https://www.php.net/releases/8.6/en.php
https://make.wordpress.org/hosting/handbook/server-environment/
https://make.wordpress.org/core/2026/11/23/wordpress-and-php-8-6/
https://wordpress.org/download/releases/
https://wordpress.org/documentation/article/site-health-screen/
https://www.php.net/manual/en/features.commandline.options.php
https://developer.wordpress.org/advanced-administration/security/backup/
https://www.php.net/manual/en/migration86.deprecated.php




