PHP 8.5 alpha 1 is available for download

25 jeroenpeters 4 7/9/2025, 7:44:25 AM php.net ↗

Comments (4)

moebrowne · 4h ago
8.5 notably includes the new pipe operator: https://stitcher.io/blog/pipe-operator-in-php-85
kriz9 · 54m ago
I feel like if you treat temporary variables as documentation they feel less icky. All these examples with the pipeline operator cause way more mental overhead than reading temporary variable names.
V__ · 11m ago
I think it really depends on what operations you are applying. Having one succinct named variable like $slug with a few simple pipeline calls like in the example is "self-documenting" and easy to read. However, some lambdas and non-standard function are definitely a place for nicely named temporary variables in my opinion.
HackerThemAll · 3h ago
Great news! PHP is going to humiliate all its haters.