a finally block will always be executed. Always! • Useful for closing DB connections, file handles etc • https://wiki.php.net/rfc/finally Wednesday, 22 May 13
finally { echo "this will be called\n"; } //this will never be called echo "you can not see me"; this will be called //return int(2) Wednesday, 22 May 13
Opcache • Included by default in PHP 5.5+ • This is a big win, it’s the fastest opcode cache for PHP, between 5%-20% faster than APC • https://wiki.php.net/rfc/optimizerplus Wednesday, 22 May 13
Corrigan", "talk" => "What’s new in PHP 5.5", ], [ "speaker" => "Rick Measham", "talk" => "Hacker tips for getting hired", ], ]; foreach ($talks as list($speaker, $talk){ echo $speaker. " on " . $talk . PHP_EOL; } // Tom Corrigan on What’s new in PHP 5.5 // Rick Measham on Hacker tips for getting hired •https://wiki.php.net/rfc/foreachlist Wednesday, 22 May 13
insensitivity no longer locale specific • Logo functions removed: php_logo_guid(), php_egg_logo_guid() etc • Changes to pack() and unpack() BC BREAK • http://www.php.net/manual/en/migration55.incompatible.php Wednesday, 22 May 13
(good!) • IntlDateFormatter::setTimeZoneID() and datefmt_set_timezone_id() • some mcrypt functions • http://www.php.net/manual/en/migration55.deprecated.php Wednesday, 22 May 13