"PHP doesn’t have to be terrible"
I agree. Many of the usual complaints about PHP stem from the old versions, which are indeed far from perfect. I'm not going to tell anyone it's better than something else, but saying it's bad because it used to be bad or that a lot of people write awful code in it is disingenuous. I've seen more bad code than good and in all possible languages.