PHP 5.5 Beta1 Released
Written by Alex Denham   
Thursday, 28 March 2013

PHP 5.5 has been released in beta with new features including the integration of the Zend Optimizer+, support for non-scalar iterator keys, and an array_column function.

The inclusion of the Zend Optimizer+, by way of the Zend Opcache extension, is a relatively recent decision. As we reported in February, Zend CTO Zeev Suraski put forward a proposal on the PHP wiki for integrating the Zend Optimizer+ component into the Open Source PHP distribution.

His RFC (request for comments) said that Optimizer+ offers a consistently better performance than its main rival, APC, with improvements of between 5 and 20 per cent in terms of requests per second. Zend Optimizer+ improves the speed of PHP execution through opcode caching. It improves server performance by storing compiled PHP bytecode in shared memory, so when used a second time the code doesn’t have to be read from the disk or compiled.

New features added to PHP 5.5 include support for generators and a new password hashing API. This will enable developers to generate a secure salted password hash using Bcrypt in a single line of code:

$hash = password_hash($password,
                     PASSWORD_DEFAULT);

A salt is not needed as it will be auto-generated by the API if not present and added as a random component to the password. Using the Bcrypt hash method makes long passwords difficult to crack as it is computationally intensive and requires a lot of memory.

Other improvements in this version include:

  • support for finally in try/catch blocks
  • support for list() in foreach
  • constant array/string dereferencing
  • ext/intl improvement
  • support for using empty() on the result of function calls and other expressions

 

 

zendwip

 

You can read the full list of improvements and bug fixes in the PHP News file on github.

The next beta revision is scheduled for the beginning of April, so it looks likely that there won’t be any delays despite the late addition of the optimizer.

More Information

PHP 5.5.0 beta1 available

PHP download page

Windows binaries

Related Articles

Zend Optimizer+ For PHP?

PHP 5.4 - A Major Update

 

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

 

Banner


Android 15 Developer Preview Released
19/02/2024

Android 15 Developer Preview has just been released by the Android team with features including partial screen sharing and the latest version of the Privacy Sandbox.



Generative AI Training For All On Coursera
04/03/2024

Generative AI is on the loose, getting into business and commerce as well as into art, poetry and coding. Already useful, it  will become ever more useful as long as we use it properly. Coursera  [ ... ]


More News

Last Updated ( Thursday, 28 March 2013 )