We’re excited to announce support for PHP 8.5, the latest stable release of PHP. This version continues PHP’s steady evolution, focusing on improved language ergonomics, better debugging capabilities, and new standard functionality.
What’s new in PHP 8.5
PHP 8.5 introduces a number of incremental but meaningful improvements aimed at developer productivity, code clarity, along with debugging quality-of-life improvements.
Language improvements
PHP 8.5 adds several features that make code easier to read, reason about, and maintain:
- Pipe operator (|>)
Enables left-to-right function chaining, reducing nesting and improving readability in data-transformation workflows. - Property initialization during cloning
Objects can now be modified directly as part of the clone operation, simplifying immutable object patterns. - First-class callables in constant expressions
Static closures and first-class callables can now be used in constant expressions. This includes attribute parameters, default values of properties and parameters, and constants. - #[\NoDiscard] attribute
Allows developers to signal that a function’s return value should not be ignored, helping prevent subtle logic errors.
New standard library features
PHP 8.5 adds commonly requested utilities directly to the language runtime:
- URI extension
A new built-in extension for standards-compliant URI parsing and manipulation, reducing the need for third-party libraries. - array_first() and array_last()
Convenience functions for retrieving the first or last element of an array without manual pointer handling. - Persistent cURL share handles
Improve performance by allowing connection reuse across requests.
Diagnostics and tooling
Operational visibility and debugging have been improved:
- Stack traces for fatal errors
Fatal errors now include stack traces, making critical issues easier to diagnose.
For a full breakdown of changes, visit the PHP 8.5 Release Announcement.
Testing your application with PHP 8.5
It’s always a good idea to test your application code with every new release of PHP. WordPress VIP recommends that you use several methods to prepare for a PHP upgrade.
Scan your codebase for incompatibilities
Review the WordPress VIP documentation “Prepare application code for a PHP version upgrade” guide and perform the scan.
Test with the VIP Local Development Environment
We recommend using the VIP Local Development Environment to test your application code locally.
Create a new environment with PHP 8.5:
vip dev-env create --slug=mytestsite --php=8.5
Or update an existing local environment with PHP 8.5:
vip dev-env update --slug=mytestsite --php=8.5
Test with a non-production VIP Platform environment
To update your non-production environments to PHP 8.5, either use the Software Management feature in the VIP Dashboard, or run the vip config software update command with VIP-CLI. For example:
vip @mytestsite.testing config software update php 8.5
Let VIP do the heavy lifting!
Instead of the do-it-yourself approach, focus on your key priorities while our experienced staff manage, validate, and implement your PHP update for you with the specific needs of your applications in mind. Maximize your team’s resources, improve site stability, and unlock peace of mind with our Upgrade Assurance Service. If you’re interested in learning more, please connect with your Relationship Manager, or reach out to our Support Team.
Note that at this time:
- Our minimum supported version is 8.2. Security support for 8.2 ends on December 31, 2026.
- PHP 8.5 is marked as “Beta support” in PHP Compatibility and WordPress Versions.

You must be logged in to post a comment.