What's new in PHP 7.4, and coming up in PHP 8
summary
Covers concrete changes in PHP 7.4 like typed properties with uninitialized-read errors and invariant property rules, plus method covariance and contravariance enforced by LSP; previews PHP 8 features: union types, constructor property promotion, named arguments and real attributes replacing docblocks, a WeakMap for memory-safe caches, new str_ helpers, and a JIT that benchmarks between -10% to +10% variance* and adds complexity (alpha available, target release Nov 26 2020).
AI-written summary · about
chapters (5)
- 0:00Start
- 6:54Covariant Return Types
- 16:57Coercive typing mode
- 30:18Attributes: Reading
- 36:28Attributes: Use Cases








