After a year of development, the release of the PHP 7.4 programming language is presented. The new branch includes a series of new features, as well as several changes that violate compatibility.
Key improvements in PHP 7.4:
- Typed Properties
- Arrow Functions
- Limited Return Type Covariance and Argument Type Contravariance
- Unpacking Inside Arrays
- Numeric Literal Separator
- Weak References
- Allow Exceptions from
__toString()
- Opcache Preloading
- Several Deprecations
- Extensions Removed from the Core
The functions get_magic_quotes_gpc ()
, get_magic_quotes_runtime ()
, hebrevc ()
, convert_cyr_string ()
, money_format ()
, ezmlm_hash ()
,restore_include_path ()
, ldap_control_paged_result_response__preport ()
, are declared obsolete.
A warning is provided about using an outdated feature when trying to process invalid characters in the base_convert ()
, bindec ()
, octdec ()
, and hexdec ()
functions, as well as when specifying a non-string pattern in mb_ereg_replace ()
.
Get more information at the official website.