PHP 7.0

Released 3 December 2015.


Major new features:

scalar type declarations and return type declarations

null coalescing operator ??

spaceship operator <=>

anonymous classes

Throwable interface, catchable Error exceptions


Minor new features:

group use declarations, eg. use Foo\{Bar, Baz}

intdiv(), integer division

Closure::call() and Closure::fromCallable()

random_bytes() and random_int(), cryptographically secure randomness