Named arguments
- Specify only required parameters, skipping optional ones.
- Arguments are order-independent and self-documented.
Attributes

Instead of PHPDoc annotations, you can now use structured metadata with PHP’s native syntax.
Constructor property promotion

Less boilerplate code to define and initialize properties.
Union types

Instead of PHPDoc annotations for a combination of types, you can use native union type declarations that are validated at runtime.
Match expression

- Match is an expression, meaning its result can be stored in a variable or returned.
- Match branches only support single-line expressions and do not need a break; statement.
- Match does strict comparisons.
Nullsafe operator

Saner string to number comparisons

Consistent type errors for internal functions

Most of the internal functions now throw an Error exception if the validation of the parameters fails.
]]>