What's new in PHP 8.4
summary
PHP 8.4 adds concrete features: Property Hooks let typed properties run custom getter/setter code so you can implement virtual properties and enforce value ranges (private set implies final), Asynchronous Visibility (asymmetric get/set visibilities) lets public reads with restricted writes, DOM parsing gains an opt‑in DOM\Document that implements HTML5 parsing, a redesigned JIT replaces the old engine, grapheme string splitting fixes emoji handling, PDO gains driver‑specific connect factories, a deprecation attribute with since metadata, new rounding enums, and longer support windows and fewer RCs.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 2:45Asymmetric visibility
- 7:00Property hooks
- 12:17Parentheses removal
- 14:24HTML5 parser
- 17:49Lazy objects
- 18:54New JIT engine
- 23:54Deprecated attribute
- 27:07PDO driver changes
- 30:00Rounding modes
- 32:13Password hashing cost
- 34:03Grapheme string split
- 38:17Nullable deprecation
- 39:41PHP policies
- 41:07Release cycle changes
- 43:55Q&A








