This. PHP is PHP just like Javascript is Javascript. Their growth process was a bunch of people needing things and just implementing them one by one without a grand design. It kinda works, but it'll never be Good in a theoretical sense.
Disturbingly for us language geeks, it doesn't seem to matter at all that they're not very good.