What's new in PHP 8.3.
summary
PHP 8.3 and near-future changes focus on concrete, usable features: warnings for creating dynamic properties (phasing out by PHP 9), typed class constants and stricter static variable initialization, a new override attribute that forces method-signature checks, standalone true/false/null types and DNF types for precise typing, a Random extension with convenience APIs like Randomizer::getBytesFromString and pickArrayKeys, json_validate to check large JSON without allocation, and sensitive parameter attributes that mask secrets in error dumps.
AI-written summary · about
chapters (20)
- 0:00Introduction
- 2:11Read-only properties
- 5:00Dynamic properties warnings
- 6:02Enumerations improvements
- 7:48Spread operator arrays
- 9:56First-class callables
- 11:00Standalone false/null/true types
- 13:09Intersection and DNF types
- 16:00Random extension enhancements
- 20:37Sensitive parameters
- 23:07Override attribute
- 25:12Typed class constants
- 26:18Dynamic class constant fetches
- 28:27Static variable initialization
- 30:14JSON validation
- 32:00HTML 5 parsing
- 35:12JIT engine optimizations
- 39:47PDO subclassing
- 41:12Property hooks
- 45:02Q&A








