~/talk

What's New in PHP 8.5

Talkat Forum PHP 2025 · 2025-10-09..10-10· [php]
slides:none on file

PHP 8.5 adds concrete, usable features: closures in constant expressions plus a pipe operator for single-argument chaining and debugger support that lets you step through pipe values; clone(object, [props]) creates modified copies while respecting visibility and readonly rules; a new URI/URL parsing classes (WG and RFC variants) with getters/setters and correct encoding; opcache becomes a built-in extension; attributes now target constants and include nodiscard; filter can throw on failure; and handy array_first/array_last and grapheme-aware string functions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Closures in constant expressions
  3. 6:47Asymmetric visibility in PHP 8.4
  4. 9:54Final properties and constructor promotion
  5. 10:38Clone with modifications
  6. 13:33New URI parsing classes
  7. 16:45Opcache becomes built-in
  8. 18:56Attributes on constants
  9. 20:19No discard attribute
  10. 22:47Deprecated trait attribute
  11. 24:14Stack traces for fatal errors
  12. 25:20Filter throw on failure
  13. 27:05Array first and array last functions
  14. 28:32Grapheme string splitting
  15. 31:45Grapheme Levenshtein distance
  16. 33:54New voting policies
  17. 34:38Adopting PECL API
  18. 35:23Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.