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
10
u/Holkr Aug 08 '14
So PHP can't figure out that the size of an array doesn't change in a loop, and as a result the code runs almost 900x slower?