As of PHP 7.1, the short [] notation can be used instead of list() to unpack array elements into variables, mirroring the short array syntax of PHP 5.4.
list()
ArrayAccess
PHP 7 lets the list() statement unpack objects of classes that implement the ArrayAccess interface, such as ArrayObject, where older versions gave null.
PHP 7.1 allows keys to be specified when unpacking arrays with list() or its [] short form; any expression, such as a constant or variable, can be a key.
Since PHP 7.3, the list() statement and its [] short form can be used with reference assignments, so array elements can be destructured by reference.
array_column()
In PHP 7, array_column() also works on a one-dimensional array of objects, reading public properties or private ones exposed via __isset() and __get().
array_merge()
array_merge_recursive()
array_merge() and array_merge_recursive() can now be called without an argument and return an empty array, which helps when spreading an empty list.
array_push()
array_unshift()
array_push() and array_unshift() can now be called with only the array as single argument, useful when the spread operator unpacks an empty list of values.
array_key_first()
array_key_last()
PHP 7.3 introduces the array_key_first() and array_key_last() functions, which return the first and the last key of an array, respectively.
Since PHP 7.4, the spread operator ... can be used inside array expressions to unpack index-based arrays; unpacking by reference is not possible.
eval
CompileError
error_log
error_clear_last()
E_STRICT
__toString()
JSON_THROW_ON_ERROR
catch
object
Iterable
array
ini
Countable
is_countable()
spl_object_id()
get_mangled_object_vars()
gettype
is_object()
gmp_random_seed()
gmp_binomial()
gmp_kronecker()
gmp_lcm()
gmp_perfect_power()
imagecreatefromstring()
mbstring
mb_str_split
Spoofchecker
Normalizer::getRawDecomposition()
mb_chr()
mb_ord()
mb_scrub()
mb_convert_encoding()
preg_quote()
#
preg_replace_callback_array()
preg_replace_callback()
session_start()
dirname()
zip
ignore_user_abort()
stream_isatty()
proc_open()
proc_nice()
getrusage()
memory_limit
fpm_get_status()
getallheaders()
crc32c
mail()
mb_send_mail()
unserialize()
max_depth
uniqid()
DateTime::createFromImmutable()
mixed