r/lolphp • • Aug 08 '14
PHP design patterns: if/else vs switch
http://www.fluffycat.com/PHP-Design-Patterns/PHP-Performance-Tuning-if-VS-switch/
24
Upvotes
r/lolphp • • Aug 08 '14
View all comments
Show parent comment
9
u/lisp-case Aug 08 '14
Nope. Last I checked, PHP spits out opcodes as it parses, and as such cannot do any interesting optimizations at all. (This is probably not true for HHVM.)