~/talk

It's All About the Goto

slides:none on file

Explains how PHP turns source into tokens then an AST then opcodes that Zend executes, and that control flow is implemented as jumps/goto-style opcodes (so conditionals and loops become jumps). Shows tools: tokenizer extension, php-ast visualizer and VLD to inspect opcodes. Notes surprises: PHP7 grows to ~150 opcodes, foreach clones arrays and you cannot jump into language constructs, and branch-aware coverage (Xdebug) is possible but expensive and currently impractical for full projects.

AI-written summary · about

  1. 0:00Intro
  2. 0:27About Me
  3. 1:14Stages
  4. 2:14Tokenization
  5. 6:29Scanner Rules
  6. 13:23Abstract Syntax Tree (formatted)
  7. 17:09Byte Code
  8. 18:52AST is converted to bytecode
  9. 29:19FOR (rewritten)
  10. 31:54FOREACH
  11. 35:06Complex Loops
  12. 36:42Dead Code
  13. 38:56Xdebug code coverage output
  14. 39:34Xdebug branch coverage display
  15. 41:17Recap
~/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.