~/talk

PHP, Under The Hood

slides:none on file

A PHP reimplementation called PHPPHP compiles PHP source (lex → parse → compile) into PHP-specific opcodes, runs them on a simple executor loop, and models zval refcounting and copy‑on‑write so you can inspect actual behavior without C. The demo explains why an opcode cache is hard (compilation is not idempotent, inheritance and runtime state matter), shows the SAPI/startup/request/shutdown lifecycle, and reports PHPPHP passing about 55-60% of the core language tests.

AI-written summary · about

  1. 0:00Introduction
  2. 1:33Dynamic vs Weak Type
  3. 2:29Implementation Defined
  4. 2:57PHP Implementations
  5. 3:28PHP Compiler
  6. 5:56PHP Engine
  7. 10:56Code Compilation
  8. 13:01Parse
  9. 13:58Compiler
  10. 14:22Opcodes
  11. 15:05PHP Opcodes
  12. 16:01PHP Opcodes Cache
  13. 17:43PHP Execution
  14. 18:48PHP Add Spec
  15. 19:41PHP ZVal
  16. 23:59Get Involved
~/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.