~/talk

Climbing the Abstract Syntax Tree

Talkat PHP UK Conference 2018 · 2018-02-14..02-16· [php, developer-experience]
slides:none on file

AST introduced in PHP 7 becomes an explicit intermediate data structure that decouples parser and compiler, yielding about 10–15% faster compilation at the cost of higher memory use. Concrete tools demonstrated include php‑ast extension (native, exposes AST), PHP-Parser (userland parser, convenient but slow). Examples built: a tiny lexer/parser/compiler for arithmetic, a class monkey‑patching loader using BetterReflection, and notes on Phan/Exakat static analysis; native AST works and enables real tooling.

AI-written summary · about

  1. 0:00Start
  2. 0:04Climbing the Abstract Syntax Tree
  3. 29:06Parsing the tokens
  4. 34:09Executing the AST
  5. 36:40What does this mean for me?
  6. 44:01Better Reflection
~/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.