PHP 7 added anonymous classes for one-off objects; examples being a value object, and an object that implements an interface for dependency injection. Anonymous classes are designed for single-use and ...
PHP 8 supports array unpacking with string keys, introduces a new function to determine if an array is a list, and a stable array sort function. Exception handling adds support for non-capturing ...