New FeaturesPHP CoreMore Flexible Heredoc and Nowdoc SyntaxThe 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 supports Reference Assignments
Array destructuring now supports reference assignments using the syntax
Instanceof Operator accepts Literals
CompileError Exception instead of some Compilation Errors
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
Trailing Commas are allowed in CallsTrailing commas in function and method calls are now allowed. Argon2id Support
The --with-password-argon2[=dir] configure
argument now provides support for both Argon2i and Argon2id hashes in the
password_hash, password_verify,
password_get_info, and
password_needs_rehash functions. Passwords may be hashed
and verified using the FastCGI Process ManagerNew options have been added to customize the FPM logging:
BC Math Functionsbcscale can now also be used as getter to retrieve the current scale in use. Lightweight Directory Access ProtocolFull support for LDAP Controls has been added to the LDAP querying functions and ldap_parse_result:
Multibyte String FunctionsFull Case-Mapping and Case-Folding SupportSupport 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:
Case-Insensitive String Operations use Case-FoldingCase-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. MB_CASE_TITLE performs Title-Case Conversion
mb_convert_case with Unicode 11 SupportThe Multibyte String data tables have been updated for Unicode 11. Long String SupportThe Multibyte String Functions now correctly support strings larger than 2GB. Performance ImprovementsPerformance of the Multibyte String extension has been significantly improved across the board. The largest improvements are in case conversion functions. Named Captures Support
The
\k<> and \k'' notations to reference named
captures in the replacement string:
\k<> and \k'' can also be used for numbered
references, which also works with group numbers greater than 9.
Readline
Support for the |