之前介绍过php7.0速度相当于php5.6的两倍,7.1相当于2.3-2.5倍之间,现在的7.2更快,但不会达到3倍,估计在2.6-2.8倍之间,这已经相当快了,下面就是它的具体介绍。
PHP开发团队宣布PHP 7.2.0立即可用。这个版本标志着PHP 7系列的第二个特性更新。
PHP 7.2.0提供了许多改进和新特性,如:
- Convert numeric keys in object/array casts
- Counting of non-countable objects
- Object typehint
- HashContext as Object
- Argon2 in password hash
- Improve TLS constants to sane values
- Mcrypt extension removed
- New sodium extension
有关PHP 7.2.0的源代码下载,请访问我们的下载页面Windows二进制文件,可以在PHP for Windows站点上找到。变更列表记录在变更日志中。
迁移指南可以在PHP手册中找到。有关新特性和向后不兼容更改的详细列表,请咨询它。
非常感谢所有的贡献者和支持者!
php7.2.0官方修复日志: