PHP's frameworks (Laravel, Yii, etc), being based on previous frameworks, are more mature and frankly just better than Rails in most ways, though less integrated with the stack. Which also provides more choice and 'competition' in the PHP ecosystem.
To be generous; starting with plain PHP would be like starting with Ruby, not Rails.
Ruby is still a better language, but that really doesn't matter unless you project involves writing stuff from scratch.
http://www.reddit.com/r/lolphp/comments/2xw0ky/thread_doesnt...
DateTime and DateTimeImmutable Objects? and how about Datetimeimmutable::modify() method? http://php.net/manual/en/datetimeimmutable.modify.php
http://www.reddit.com/r/lolphp/comments/2oyxs8/php_bug_53711...
http://www.reddit.com/r/lolphp/comments/2l2z04/fixing_pdopar...
Excellent? Really?
To be fair there is no perfect language ,especially in dynamic/weakly typed ones. PHP "grew organically", was successful because at the time it came , it was easy enough for hobbyists and non programmers.
It's still the cheapest way to develop web apps and for those who like java patterns they can still upgrade to these because of its class system. While I wish Ruby or Python would be more popular, they are not as easy to use as PHP(while ironicaly it is easier to go further faster with rails for instance than bare bone PHP),they are not as cheap to deploy too.
There is a natural progression between learning HTML and then adding some server-side behavior , that wasn't met by other solutions (while java has JSP, forced OO makes it too complicated for beginners)
Nevertheless, PHP has excellent libraries , extensions that even some "hotter" languages do not have , I think when people start projects they don't just look at the language but also the ecosystem.