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. 1.
  2. 2.
  3. 4.
  4. 5.
  5. 6.
  6. 8.
  7. 10.
  8. 13.
  9. 14.
  10. 16.
  11. 18.
  12. 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)
  13. 22.

    Internals Immutable arrays PCRE with JIT new JSON parser ...and

    more to come (watch Dmitry Stogof's talk on PHP7 internals for more!)
  14. 24.
  15. 26.
  16. 28.
  17. 30.
  18. 31.
  19. 32.
  20. 34.
  21. 36.
  22. 38.
  23. 39.
  24. 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
  25. 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
  26. 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