Crazy Fun Experiments with PHP (Not for Production)
summary
Shows how PHP source is rewritten on the fly using stream filters and a decorated Composer autoloader so files are passed through transformers before execution, enabling AOP pointcuts, generated generics-like code and even importing esoteric scripts such as Brainfuck via a stream wrapper. Demonstrates an XOR-style decrypt-at-include pipeline, a Composer autoloader overload that returns transformed PHP strings, and caveats: require vs eval differences, no interactive stdin for required scripts, caching and performance make these experiments unusable for production but they do work.
AI-written summary · about
chapters (9)
- 0:00Start
- 1:25Streams
- 5:31Input?
- 6:22Stream Filters
- 19:25What Next?
- 19:40Short Closures!
- 20:35Obfuscation
- 22:36Performance like it's 1994
- 24:30Create terrible things.








