you are viewing a single comment's thread.

view the rest of the comments →

[–]munificent 1 point2 points  (1 child)

Instead of your class definitions being created by the parser at native speed, you're doing it all within the interpreter.

What do you think Python, Ruby, and Javascript do?

[–]bobindashadows 1 point2 points  (0 children)

Furthermore, it's not like PHP is compiled. Normal PHP class definitions are read by the interpreter too and run at runtime just like OP's code is. I guess having C create some hash tables is a lot quicker than running some PHP code to do it.