~/talk

What's new in PHP 8

Talkat phpday 2020 · on Tuesday, 2020-09-08· [php]
slides:none on file

PHP 8 adds concrete features not buzzwords: union types (including built‑in mixed) let arguments and properties accept multiple concrete types, attributes replace docblock annotations and are discoverable via reflection, Constructor Property Promotion removes repeated property boilerplate, named arguments change public APIs semantics, the nullsafe operator and strict match expression simplify control flow, weak maps enable cache metadata without memory leaks, some warnings become ValueError for true coding errors, str_contains/starts_with/ends_with arrive, JIT compiles hot paths to machine code with an expected overall effect around -5% to +5%, release set for 2020‑11‑26.

AI-written summary · about

  1. 0:00Introduction
  2. 1:48Union types
  3. 11:24Attributes
  4. 13:43Reflection
  5. 17:33Match Expression
  6. 20:30NoSafe Operator
  7. 23:09STR Contains
  8. 24:17WeakMap
  9. 26:16ValueError Exceptions
  10. 28:12JustinTime Compiler
  11. 29:50Release date
  12. 30:55Questions
~/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.