PYTHON faster than PHP ?

Questioned by
Sohaib Raza
social media Image social media Image  


Momina Khan 1 year ago
For instance, executing a database query in PHP or Python, should not be slower nor faster than any other language. It is up to the database server. Other than that, both (the original) PHP and Python implementations come with extensions written in C/C++ code, so comparing the speed of PHP and Python is just comparing how fast the commands that access that C/C++ code run. So you are not really comparing PHP and Python.
Tauseef Anwar1 year ago
Perl has the same trend as Python and is steadily 22x slower than C++. PHP 5.x is the slowest with results between 47x to 60x behind C++. PHP 7 made the big surprise. It is about 10x faster than PHP 5.x, and about 3x faster than Python which is the next fastest script language.
Poll iGreen Bottom Image