The PHP development team has announced the feature freeze for PHP 8.5, scheduled for release in November 2026.
Pipe Operator
The long-awaited pipe operator (|>) allows functional-style chaining of function calls:
$result = $input
|> trim(...)
|> strtolower(...)
|> str_replace(' ', '-', ...)
|> htmlspecialchars(...);
This improves readability for data transformation pipelines without deeply nested function calls.
Pattern Matching (Preview)
An early preview of pattern matching is available behind a feature flag. It introduces match-like syntax with destructuring:
match($response) {
Status::Ok($data) => handleSuccess($data),
Status::Error($code, $msg) => handleError($code, $msg),
}
Other Improvements
- Readonly Class Improvements — Readonly classes can now implement interfaces with mutable contracts
- Closure::bind() Improvements — Better closure composition utilities
- Locale-Independent Float Parsing — Consistent float-to-string and string-to-float behavior
- JIT Improvements — 10-15% performance gain over PHP 8.4 in real-world applications