I\'ve been arguing with some friends on the university, and we can\'t get to a point to which is the framework with more scalability for web applications (and still very fast).<
A compiled language will generally run faster than an interpreted language so I think Ruby and PHP start behind the eight ball but It really comes down to how you use the language and how you structure the code.
All languages will have their own best practices and patterns to build scalable applications and often there will be compromises depending on the functionality of the proposed application.