Web & integrations
PHP 8.5: new capabilities and preparing an upgrade
Evaluate PHP 8.5 for an existing application and separate new language capabilities from urgent security updates.
As of 23 October 2026, PHP 8.5 is the newest stable minor branch of the language. That does not mean every existing application should move without preparation. Dependencies, extensions, the serving model and behavioural changes matter more than the version printed by a single command.
The key decision
Plan compatibility checks for a new branch. Prioritise security fixes within the branch you use, without waiting for an unrelated redesign or feature release.
New features are tools, not a reason to rewrite
PHP 8.5 introduces the pipe operator for sequential value transformations and a URI extension. Evaluate their usefulness in the actual codebase. Check new API availability and behaviour in your chosen package and environment; support for language syntax and availability of every extension are separate questions.
Read the compatibility changes
Compare the migration guide with your dependencies, error handling and automated tasks. Some differences emerge only for invalid input or boundary values. A homepage check does not cover imports, exports, scheduled commands and background processing. Keep a list of the application paths that must be exercised before the switch.
Inventory the runtime environments actually in use
Record the PHP version for the web, CLI, workers and individual sites, along with enabled extensions. Composer platform checks can confirm declared requirements but do not establish functional compatibility. Prepare an isolated environment with comparable configuration and suitable sanitised data before changing the production runtime.
Distinguish a feature upgrade from a security fix
On 21 October, PHP published 8.5.12 as a security release for CVE-2026-109618 and CVE-2026-109619. Supported older branches also received fixes. Merely running PHP 8.5 does not establish that these patches are installed: verify the exact version or the vendor-confirmed backported fix.
Switch, then verify again
After upgrading, verify the version through the actual web process, restart the relevant workers and exercise critical workflows. Keep the verification results and a recovery plan. Returning indefinitely to a runtime with a known security defect is not an acceptable rollback strategy; resolve compatibility while retaining the protection.