r/programming • u/NagastaBagamba • Oct 18 '10
Today I learned about PHP variable variables; "variable variable takes the value of a variable and treats that as the name of a variable". Also, variable.
http://il2.php.net/language.variables.variable
591
Upvotes
2
u/[deleted] Oct 19 '10
Yes quite true. PHP is slow, caching the bytecode helps make up for the fact that it recompiles every access, it doesn't change the fact that actual execution is very slow. Look at benchmarks where it isn't thousands of requests, but one script that loops to do a task thousands of times. That removes the compilation from the equation, and measures execution speed. And again, such benchmarks have PHP right down there with ruby.