slides/intro/new-in-php74.xml
What's new in PHP 7.4?
29/42
Dead Code Elimination (DCE)
Typed Properties
  • • Typed Properties
  • • FFI
  • • Preloading
  • • Variance Checking for Arguments/Return Types
  • • Null Coalesce Assignment (??=)
  • • Spread Operator:
  • • Hash Extension always available
  • • New Custom Serialisation
  • • Weak References
  • • Short Arrow Functions: $arrow = fn($x) => $x + $y;
  • • Numerical Literal Separator: 3.141_592_653_589_793_238_462_643_383