What’s new in PHP 7.2: better security, code handling


PHP 7.2, the latest version of the popular server-side web development language, has numerous features and fixes.

The November 30, 2017, release is the second feature update to the PHP 7 series. PHP 7.0 debuted in December 2015 to much fanfare, with the upgrade offering of previous PHP iterations.

New security features in PHP 7.2

The PHP 7.2 release offers multiple security improvements:

  • The Argon2 algorithm for securely hashing passwords addresses downsides of current algorithms in that it was designed for the highest memory filling rate.
  • The , for authenticated encryption, is now a core extension. The library also offers high-speed elliptic cryptography. 
  • SSL/TLS (Secure Sockets Layer/Transport Layer Security) constants have been improved.
  • The Mcrypt cryptography library extension has been removed. PHP’s developers have said Mcrypt has inhibited the growth of the PHP language and serves as “abandonware.”

Improved programming features in PHP 7.2

PHP 7.2 has several new and enhanced programming capabilities: