This one is easy, python.
so many reasons, some of them:
PHP is dying, while python is gaining popularity for years now, which means, more libraries, more support, more updates from bigger community.
even if you wish to become web developer (which is the only reason why you would like to choose between python and php) python got django, which is python’s web development framework, and also flask for lighter applications.
Python is awesome for automation, like web scrapping or creating bots that will perform repetitive tasks.
Python is also the go to (outside academy research where R is learnt) language for A.I. Applications such as machine learning, that’s used for example for business intelligence or deep learning (neural network) for language processing for another.
Python isn’t easy as many here claim, OOP is complex as the program you wish to create, but python integrates seamlessly with any other language.
In order to master coding, you need to read tons of code and write tons of code, don’t let anyone tell you that it’s super easy, barely an inconvenience... this shit takes years of perfecting.