Both python and PHP are popular programming languages used for web development, but each has its own strengths and weaknesses. The Choice between them largely depends on your specific requirements and preferences. Overall if you prioritize ease of learning and scalability. Python may be the better choice. If you value performance and have experience with PHP, then PHP may be the better option. However, the best way to determine which language is right for your project is to try them both out and see which one feels more comfortable and efficient for your needs.
https://invedus.com/blog/pytho....n-vs-php-which-one-t

Python vs PHP - Choosing the Right Language for Web Development 2023
invedus.com

Python vs PHP - Choosing the Right Language for Web Development 2023

Expressiveness, reliability, and performance make a programming language better than another. Python vs PHP blog help you select right language for your development work