PHP is a language. Rails is a Ruby framework. Comparing PHP to Rails is like comparing Perl to Django, or Haskell to Seaside, and that makes no sense. Two things that DO make sense:
- Using PHP for web development. It deploys and scales great.
- Using Ruby on Rails for web development. The framework provides an excellent set of conventions for rapid development.
text source: stop-comparing-php-to-rails
Everybody knows, that php is language and rails is framework. But when we talk about php side we mean main ways of developing with php. It is a context of this day.
Fact is that rails was written on ruby. And even symphony-project can't beat it.