The La(te)st PHP 7 — What's new in PHP 7.4
summary
PHP 7.4 adds typed properties with runtime initialization checks, allows covariant returns and contravariant arguments, introduces the Foreign Function Interface which is bundled but disabled and marked experimental (powerful but crashy and C‑knowledge required), adds preloading that yields about ≈10% speed in some setups, brings FFI + preload composition, weak references, new serialize/unserialize magic, a nil coalesce assignment and splat in array literals, stricter warnings and several removed extensions.
AI-written summary · about
chapters (17)
- 0:00Intro
- 1:03Typed Properties
- 4:54Covariant Return Types
- 6:59Contravariant Argument Types
- 8:12Invariant Property Types
- 10:08Spread Operator in Array Expression
- 12:35FR -- Foreign Function Interface
- 20:23Preloading Zend Framework
- 23:04Reflection for references
- 25:26New custom object serialization mechanism
- 28:25Unbunding Extensions
- 31:34Episode 3: Weak References
- 34:21Episode 14 Short Arrow Functions
- 36:37Episode 110: LSP and Operator Precedence
- 42:39Episode 017: Numeric Literal Separator
- 45:24Episode 119: Deprecate curly brace syntax for accessing array elements and string offset
- 46:54Episode 122: PostGreSQL escape characters








