PHP developers have officially released the 5.5 version, which has been developed since last November and has undergone multiple beta versions. PHP 5.5 contains a series of new features, such as the new Array_column () function and the foreach () loop that supports scalar iterative keys, including generators allowing developers to implement simple routines.
At the same time, the new version introduces a cryptographic hash function, which allows developers to easily implement a salt-safe password; add the finally keyword; the foreach structure supports the list () build; other improvements include opcode caching, code optimization, Zend optimizer+, etc. These pairs do not have an impact on existing code, primarily to improve the performance and stability of the language.
The new password hash API uses the Bcrypt method, as shown in the following example:
$hash = Password_hash ($password, Password_default);
Checksum method:
Password_verify ($password, $hash);
PHP developers also remind users that PHP 5.5 also contains content that is not backward compatible, including: no longer supports Windows XP and 2003 systems, case-insensitive matching functions, classes, and constant names that are not related to Locale, which are needed by developers of constant names that use non-ASCII code To be aware of. For a complete list of PHP 5.5 non-backward compatibility, see List of new features and possible incompatibilities