Aller au contenu
AFUP AFUP Day 2025 Baromètre Planète PHP PUFA
 

Climbing the Abstract Syntax Tree

Description

The new Abstract Syntax Tree (AST) in PHP 7 means the way our PHP code is being executed has changed. Understanding this new fundamental compilation step is key to understanding how our code is being run. To demonstrate, James will show how a basic compiler works and how introducing an AST simplifies this process. We’ll look into how these magical time-warp techniques* can also be used in your code to introspect, analyse and modify code in a way that was never possible before. After seeing this talk, you'll have a great insight as to the wonders of an AST, and how it can be applied to both compilers and userland code. (*actual magic or time-warp not guaranteed)

Conférence donnée lors du Forum PHP 2017, ayant eu lieu les 26 et 27 octobre 2017.

Informations complémentaires

Vidéo

Le speaker

James TITCUMB

James is a consultant, trainer and developer at Roave. He is a prolific contributor to various open source projects and is a Zend Certified Engineer. He also founded the UK based PHP Hampshire user group and PHP South Coast conference.

Commentaires

Sujet très intéressant ! J'ai eu du mal à suivre sur certains aspects.
lnc, le 28/10/2017
Always fascinating to see what's under the hood of Php, thanks!
Benoit Viguier, le 30/10/2017
Very nice!
Benjamin 'Ternel' Clay, le 02/11/2017
Nice talk, I haven't learned a lot of things during your presentation but it's always pleasant to refresh my mind about this kind of concept.
Stéphane Hulard, le 12/11/2017