~/talk

PHP Optimizations and OPCache

TalkinFrenchat SymfonyLive Paris 2014 · 2014-04-07..04-08· [php]
slides:none on file

OPcache (included since PHP 5.5 and backported to 5.3/5.4) keeps compiled PHP opcodes in shared memory so requests avoid parsing and compilation. It applies micro-optimizations—constant folding, compile-time string→int conversion, merging add+assign, reusing temporaries, and dead-branch pruning—to reduce VM instructions and CPU. Practical advice: set max_accelerated_files around 3,000 (kernel tends to pick ~3,907), expect about 3 keys per file, warm the cache after deploy, and be aware autoload/eval-generated files and single-file deployments affect throughput and memory (~50–60MB).

AI-written summary · about

  1. 0:00Introduction
  2. 1:35PHP internals and opcode
  3. 5:10Why opcode caching is needed
  4. 7:17How OPCache works
  5. 10:28OPCache optimizations
  6. 15:29OPCache setup
  7. 25:44OPCache vs APC
  8. 27:06Monitoring OPCache
  9. 30:55OPCache restart
  10. 31:58Symfony with OPCache
  11. 34:46Advanced optimizations
  12. 35:50Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.