~/talk

PHP Opcache Explained

Talkat PHP UK Conference 2014 · 2014-02-21..02-22· [php, web-performance]
slides:none on file

OPCache arrives with PHP 5.5 and runs on 5.3–5.5, it stores compiled opcodes so PHP bypasses repeated parse/compile work and serves much faster execution; the Optimizer performs constant folding, dead-branch elimination and temporary reuse so runtime work shrinks. OPCache caches compiled opcodes in shared memory and requires sizing (memory and max_accelerated_files defaults to 2000 while Symfony needs ~3000); priming after deploy avoids costly first-hit compilation, wasted entries trigger restarts, and do not combine OPCache with APC or Xdebug.

AI-written summary · about

  1. 0:00Introduction
  2. 3:17What is PHP
  3. 4:55How does PHP work
  4. 5:45Virtual Machine
  5. 7:59Passing and Compile
  6. 9:19Compile time
  7. 10:52Classes
  8. 12:47Cash Opcache
  9. 13:16Load Opcache from Shared Memory
  10. 13:31PHP
  11. 15:40Opcodes
  12. 19:36PHP Code
  13. 24:54Appa
  14. 27:47Examples
  15. 31:53Complex Code
  16. 32:58Post incrementation
  17. 34:19Reusing temporary variables
  18. 35:30Constant substitution
  19. 36:47Compilation
  20. 38:04Invariant Motion
  21. 38:27String
  22. 39:13Optimization
  23. 40:30Opcache API
  24. 41:06Opcache Settings
  25. 41:49Opcache Statistics
  26. 42:21Opcache Keys
  27. 43:12Cached Keys
  28. 43:51Cash
  29. 45:18Why restart
  30. 45:43Opcache log
  31. 46:03Fast shut down
  32. 46:43Consistency check
  33. 48:26Questions
  34. 51:54Stats
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.