Pro Yearly is on sale from $80 to $50! »

PHP7 @ PHP Day Spain 2015

PHP7 @ PHP Day Spain 2015

Presentation of the new PHP version along with bits of history and benchmarks of our Ulabox app at the PHP Day Spain 2015

8f2089782f2711659072020ad7227aff?s=128

Albert Casademont

January 31, 2015
Tweet

Transcript

  1. None
  2. None
  3. That's Me! Albert Casademont ulabox.com @acasademont (no Linkedin available, sorry!)

  4. None
  5. None
  6. None
  7. HipHop Virtual Machine HipHop for PHP

  8. None
  9. PHP6 PHPNG

  10. ¡PHP7!

  11. but first...

  12. Get PHP 5.6 PLEASE

  13. variadics

  14. None
  15. splat operator

  16. None
  17. ** operator

  18. None
  19. + nice speed bump

  20. PHP7 a.k.a. PHPNG

  21. Internals heavily modified data structs (current extensions won't work) call

    frame optimization new memory manager we finally have an AST! no JIT (yet)
  22. Internals Immutable arrays PCRE with JIT new JSON parser ...and

    more to come (watch Dmitry Stogof's talk on PHP7 internals for more!)
  23. Removed features mysql extension :'( ereg extension ASP style tags

    ...and many more
  24. None
  25. null coalesce https://wiki.php.net/rfc/isset_ternary

  26. None
  27. uniform variable https://wiki.php.net/rfc/uniform_variable_syntax

  28. None
  29. ¡¡¡return types!!! https://wiki.php.net/rfc/return_types

  30. None
  31. None
  32. None
  33. ¿named parameters? https://wiki.php.net/rfc/named_params

  34. None
  35. ¿nullable types? https://wiki.php.net/rfc/nullable_types

  36. None
  37. ¿scalar type hinting? https://wiki.php.net/rfc/scalar_type_hints

  38. None
  39. None
  40. Test environment VM Debian 7 1GB RAM, 1 core, SSD

    ulabox.com symfony 2 index / product page PHP 5.5 / 5.6 / 7.0 opcache.validate_timestamps = 0 opcache.enable_file_override = 1 HHVM 3.5 Hhvm.server_stat_cache = 1 No extensions! (APCu) Nginx, Redis, Solr, MySQL
  41. PHP 5.5 PHP 5.6 XXX XXX 0 20 40 60

    80 100 120 140 160 180 200 102 101 61 64 133 130 79 83 190 190 112 32 Index Product Bench.php msec
  42. and the Oscar goes to...

  43. PHP 5.5 PHP 5.6 PHP 7.0 HHVM 3.5 0 20

    40 60 80 100 120 140 160 180 200 102 101 61 64 133 130 79 83 190 190 112 32 Index Product Bench.php msec
  44. Resources https://wiki.php.net/phpng https://wiki.php.net/rfc http://news.php.net/php.internals https://joind.in/talk/view/12068 https://atlas.hashicorp.com/rasmu s/boxes/php7dev https://github.com/php/php-src

  45. gràcies ;)