PHP 8.5, released in November 2025, is now the recommended version across most managed hosting platforms. For UK WordPress sites, this isn’t just a version bump — it’s a compatibility checkpoint. Several widely-used plugins and themes still trigger deprecation warnings or outright errors on 8.5, and ignoring them risks white screens on production.
The headline features matter for developers and performance. The pipe operator simplifies function chaining, ‘clone with’ allows property modification during cloning, and the new built-in URI extension replaces unreliable URL parsing workarounds. For WooCommerce stores with complex integrations, cleaner code means fewer bugs and faster execution.
The risk is in deprecated functions. PHP 8.5 continues the deprecation cycle started in 8.4 — property hooks and asymmetric visibility introduced in 8.4 are now widely adopted, but older plugins that haven’t updated still break. Before upgrading, run a compatibility scan on your staging environment.
Frequently Asked Questions
Should I upgrade to PHP 8.5 for my WordPress site?
Yes, PHP 8.5 is the current recommended version for WordPress sites. It provides performance improvements of 10-20% over PHP 8.1 through internal optimisations, new language features that improve code quality, and continued security patch support. Before upgrading, test on a staging environment — while WordPress 6.4+ is fully compatible with PHP 8.5, some plugins may generate deprecation warnings or errors. On WP Pro Host, PHP version is configurable per site via Enhance CP, and upgrading on staging first before production is the recommended approach.
How do I test if my WordPress plugins are compatible with PHP 8.5?
Test on a staging environment that mirrors your production site. Enable WP_DEBUG and WP_DEBUG_LOG in wp-config.php on staging, then browse key site areas (homepage, product pages, checkout, admin dashboard) and check the debug log for PHP 8.5 deprecation warnings or errors. The PHP Compatibility Checker plugin scans your plugin and theme files for known PHP version incompatibilities before you switch. Check each plugin’s changelog and readme for PHP 8.5 compatibility statements. Pay particular attention to: WooCommerce (check compatibility matrix), your page builder, and any custom code or bespoke plugins.
What new features does PHP 8.5 add for WordPress development?
PHP 8.5 introduces: the pipe operator (|>) for cleaner function chaining without nested calls, the “clone with” expression for immutable object modification, a new built-in URI class replacing unreliable parse_url() workarounds, improved property hooks for getter/setter patterns, and various performance improvements through internal optimisation. For WordPress plugin and theme development, the pipe operator reduces callback nesting in filter and action hook chains. The URI class improves URL manipulation in custom integrations. Most WordPress site owners will not directly use these features, but plugins developed on PHP 8.5 will benefit from cleaner, more maintainable code.
What PHP version should I use for WordPress in 2026?
PHP 8.3 is the minimum recommended version for production WordPress sites in 2026 — PHP 8.2 reaches end-of-life in December 2025 and PHP 8.1 reached end-of-life in December 2024. PHP 8.5 is the current stable release and recommended for new sites and sites where all plugins are confirmed compatible. Avoid PHP 7.x (end-of-life, no security patches) and PHP 8.0 (end-of-life). Check your current PHP version in your hosting control panel or wp-cli: wp cli info. On WP Pro Host, PHP 8.1 through 8.5 are available per-site via Enhance CP.
How do I upgrade PHP on a WordPress site safely?
Safe PHP upgrade process: check current PHP version (WP CLI or hosting panel), run PHP Compatibility Checker plugin to identify potential issues, create a complete backup, clone the site to staging (or use an existing staging environment), change PHP version on staging only, test all key site areas (especially WooCommerce checkout if applicable), review debug log for errors and warnings, resolve any compatibility issues (update plugins, add temporary compatibility code), test again, then change PHP version on production. On managed hosting, PHP version changes take effect immediately without server restart. Monitor the site for 24 hours after upgrading production.