php 5.5 new features

Quick update on latest release of php 5.5 new features.

Backward Incompatible Changes

1 Windows XP and 2003 support dropped
php 5.5 version is no more compatible with Windows XP and 2003.
PHP 5.5 now require Windows Vista or newer.

2. Case insensitivity no longer locale specific
All case insensitive matching for function, class and constant names is now performed in a locale independent manner according to ASCII rules.
It improves support for languages e.g. Latin alphabet, Turkish, Azeri.
Be alert before upgrading production php version.

3. pack() and unpack() functions are changed to make them more compatible like Perl language.

4. self, parent and static are now always case insensitive earlier they used to be case sensitive fashion.
e.g. SELF::CONSTANT is now treated identically to self::CONSTANT

5. The major one but developer should not bother more about this.
zend_execute() function can not be overridden, and that numerous changes have been made to the execute_data struct and related function and method handling opcodes.

php 5.5 New Features or New Features list

1. Generators are now available
A generator allows you to iterate over a set of data using a foreach loop. It avoids building an array in memory.
this operatation will reduce memory usage and processing time.

2.finally keyword added — Recalling old days from java :)
Finally php added “finally”. Try and catch blocks now support a finally block.
For code that should be run regardless of whether an exception has been thrown or not.

3. New password hashing API
Default encryption algorithm used presently is “bcrypt”, now we can change this to new strong algo in PHP.
Now new password hashing length may increased to beyond 60 characters.

4. Array and string literal deferencing added
Array and string literals can now be dereferenced directly to access individual elements and characters.

5. empty() supports arbitrary expressions
Passing an arbitrary expression or function instead of a variable to empty() is now supported

function always_false() {
return false;

if (empty(always_false())) {
echo “This will be printed.\n”;

6. Class name resolution via ::class
Now we can use the keyword “class” to retrieve the fully qualified name of a class (entire path), including the namespace it sit within.

7. foreach now supports list() : Using foreach you can unpack the nested array into variables.

8. OPcache extension added:
New php extension added “OPcache extension”, which is combination of Zend Optimiser + opcode cache.
Its claimed that OPcache will help to improve the performance of scripts by removing the need for PHP to load and parse scripts every time a request is made.
It achieves this by storing precompiled script bytecode in shared memory.
The Zend Optimiser+ opcode cache has been added to PHP as the new OPcache extension. OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. See the installation instructions for more detail on enabling and using OPcache.

9. New features added to GD library
New feature added like “flip”, “crop”, “autocrop”, etc really cool. I have’t used yet :( need to try.
But sound really cool, Any ways we can get this done using HTML5 canvas as well.

10. The Apache 2.4 handler SAPI is now supported on Windows.

Share this nice post:

Leave a Reply

Your email address will not be published. Required fields are marked *