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.