PHP 8 now supports classes or arguments. Before PHP version 8, it helps declare classes or arguments. It has two particular union types: nullable and iterable. In PHP 8, it is extended to include several combinations, with a few exceptions.