Skip to content

Instantly share code, notes, and snippets.

@nikic
Last active August 31, 2020 10:39
Show Gist options
  • Save nikic/5213689 to your computer and use it in GitHub Desktop.
Save nikic/5213689 to your computer and use it in GitHub Desktop.
List of new features in PHP 5.5

New features in PHP 5.5

This is only a summary. For a full list of changes see the NEWS file.

Feature RFC / announcement Author
Bundled ZendOptimizer+ as OPcache https://wiki.php.net/rfc/optimizerplus zeev
Language changes
Generators and coroutines https://wiki.php.net/rfc/generators me
finally blocks https://wiki.php.net/rfc/finally laruence
Non-scalar Iterator keys in foreach https://wiki.php.net/rfc/foreach-non-scalar-keys me
Getting the fully qualified class name using ClassName::class https://wiki.php.net/rfc/class_name_scalars ralph
Function calls in empty() https://wiki.php.net/rfc/empty_isset_exprs me
list() in foreach https://wiki.php.net/rfc/foreachlist laruence
Constant array/string dereferencing https://wiki.php.net/rfc/constdereference laruence
Standard library
Simplified password hashing API https://wiki.php.net/rfc/password_hash ircmaxell
hash_pbkdf2() function https://wiki.php.net/rfc/hash_pbkdf2 ircmaxell
array_column() function https://wiki.php.net/rfc/array_column ramsey
cli_set_process_title() function https://wiki.php.net/rfc/cli_process_title kgovande
UConverter class (ext/intl) https://wiki.php.net/rfc/uconverter pollita
IntlCalendar class (ext/intl) http://markmail.org/message/b7sldwebskmhbxmx cataphrac
IntlBreakIterator class (ext/intl) http://markmail.org/message/ulnm3hhist5ygido cataphrac
DateTimeImmutable class (immutable variant of DateTime) (none) derick
Deprecations and removals
Dropped Windows XP and 2003 support (none) pierre
ext/mysql deprecated https://wiki.php.net/rfc/mysql_deprecation aharvey
preg_replace /e modifier deprecated https://wiki.php.net/rfc/remove_preg_replace_eval_modifier me
Logo GUIDs removed http://markmail.org/message/kewdoz3dowrr7rfv ajf
curlwrappers removed (not ext/curl itself!) https://wiki.php.net/rfc/curl-wrappers-removal-rfc pierrick

List I use when pasting to other places (without table support):

Uncategorized:

 * Bundled ZendOptimizer+ as OPcache (https://wiki.php.net/rfc/optimizerplus by zeev)

Language changes:

 * Generators and coroutines (https://wiki.php.net/rfc/generators by me)
 * `finally` blocks (https://wiki.php.net/rfc/finally by laruence)
 * Non-scalar Iterator keys in foreach (https://wiki.php.net/rfc/foreach-non-scalar-keys by me)
 * Getting the fully qualified class name using `ClassName::class` (https://wiki.php.net/rfc/class_name_scalars by ralph)
 * Function calls in `empty()` (https://wiki.php.net/rfc/empty_isset_exprs by me)
 * `list()` in foreach (https://wiki.php.net/rfc/foreachlist by laruence)
 * Constant array/string dereferencing (https://wiki.php.net/rfc/constdereference by laruence)

Standard library:

 * Simplified password hashing API (https://wiki.php.net/rfc/password_hash by ircmaxell)
 * `hash_pbkdf2()` function (https://wiki.php.net/rfc/hash_pbkdf2 by ircmaxell)
 * `array_column()` function (https://wiki.php.net/rfc/array_column by ramsey)
 * `cli_set_process_title()` function (https://wiki.php.net/rfc/cli_process_title by kgovande)
 * `UConverter` class in ext/intl (https://wiki.php.net/rfc/uconverter by pollita)
 * `IntlCalendar` class in ext/intl (http://markmail.org/message/b7sldwebskmhbxmx by cataphrac)
 * `IntlBreakIterator` class in ext/intl (http://markmail.org/message/ulnm3hhist5ygidoby cataphrac)
 * `DateTimeImmutable` class, which is an immutable variant of `DateTime` (by derick)

Deprecations and removals:

 * Dropped Windows XP and 2003 support (by pierre)
 * ext/mysql deprecated (https://wiki.php.net/rfc/mysql_deprecation by aharvey)
 * preg_replace `/e` modifier deprecated (https://wiki.php.net/rfc/remove_preg_replace_eval_modifier by me)
 * Logo GUIDs removed (http://markmail.org/message/kewdoz3dowrr7rfv by ajf)
 * curlwrappers removed (https://wiki.php.net/rfc/curl-wrappers-removal-rfc by pierrick)
@kotnik
Copy link

kotnik commented Mar 21, 2013

For a full list of changes and bugfixes one should go here.

@victorpuertas
Copy link

Thank you.

@bradchesney79
Copy link

Likewise. Additionally, I have been using a bcrypt implementation for a while now and it is nice to see it integrated.

@markushausammann
Copy link

Great!

@mostofreddy
Copy link

tnx!

@Jahak
Copy link

Jahak commented Jun 30, 2013

Thank you

@monolighter
Copy link

God bless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment