PHP 7.1

Released 1 December 2016.


Major new features:

nullable types, eg. ?string, and the void return type

class constant visibility modifiers (public/protected/private)

catching multiple exception types, eg. catch (A|B $e)


Minor new features:

list() with keys, eg. ['id' => $id] = $data

the iterable pseudo-type