Specific Disadvantages of PHP compared to Python via code examples?
There appears to be an overwhelming acceptance that php is a "poorly designed" language as compared to python.

As I have limited experience I am not able to fully understand this conceptually or practically...I'm still in the
"Php works fine so far" camp...but id like to be educated.

I am specifically interested in their use in web development
Can people give examples along with simple code to show why php can be problematic in important 
practical scenarios?

Relevant answers that are fundamentally not related to code are welcome as well...
Specific Disadvantages of PHP compared to Python via code examples?
===

There appears to be an overwhelming acceptance that php is a "poorly designed" language as compared to python.

As I have limited experience I am not able to fully understand this conceptually or practically...I'm still in the
"Php works fine so far" camp...but id like to be educated.

I am specifically interested in their use in web development
Can people give examples along with simple code to show why php can be problematic in important 
practical scenarios?

Relevant answers that are fundamentally not related to code are welcome as well...