The closing marker for doc strings is no longer required to be followed by a semicolon or newline. Additionally the closing marker may be indented, in which case the indentation will be stripped from all lines in the doc string.
Array destructuring now supports reference assignments using the syntax [&$a, [$b, &$c]] = $d. The same is also supported for list().
instanceof now allows literals as the first operand, in
which case the result is always
A new CompileError exception has been added, from
which ParseError inherits. A small number of
compilation errors will now throw a CompileError
instead of generating a fatal error. Currently this only affects compilation
errors that may be thrown by token_get_all() in
TOKEN_PARSE mode, but more errors may be converted in
Trailing commas in function and method calls are now allowed.
argument now provides support for both Argon2i and Argon2id hashes in the
password_needs_rehash() functions. Passwords may be hashed
and verified using the
Support for both Argon2i and Argon2id in the password_*()
functions now requires PHP be linked against libargon2 reference library ≥
New options have been added to customize the FPM logging:
bcscale() can now also be used as getter to retrieve the current scale in use.
LDAP_OPT_CLIENT_CONTROLSin ldap_get_option() and ldap_set_option() has been fixed.
Support for full case-mapping and case-folding has been added. Unlike simple case-mapping, full case-mapping may change the length of the string. For example:
// Produces STRAßE on PHP 7.2
// Produces STRASSE on PHP 7.3
Case-insensitive string operations now use case-folding instead of case- mapping during comparisons. This means that more characters will be considered (case insensitively) equal now.
now performs title-case conversion based on the Cased and CaseIgnorable
derived Unicode properties. In particular this also improves handling of
quotes and apostrophes.
The Multibyte String data tables have been updated for Unicode 11.
The Multibyte String Functions now correctly support strings larger than 2GB.
Performance of the Multibyte String extension has been significantly improved across the board. The largest improvements are in case conversion functions.
The mb_ereg_* functions now support named captures. Matching functions like mb_ereg() will now return named captures both using their group number and their name, similar to PCRE:
mb_ereg('(?<word>\w+)', '国', $matches);
// => [0 => "国", 1 => "国", "word" => "国"];
\k''notations to reference named captures in the replacement string:
mb_ereg_replace('\s*(?<word>\w+)\s*', "_\k<word>_\k'word'_", ' foo ');
// => "_foo_foo_"
\k''can also be used for numbered references, which also works with group numbers greater than 9.
Support for the completion_append_character and completion_suppress_append options has been added to readline_info(). These options are only available if PHP is linked against libreadline (rather than libedit).