Is Python slow compared to PHP,? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
3 Answers
+ 2
PHP 5.x versions were quite slow, taking a lot of time in execution. However, the new release PHP 7.x is extremely fast, almost 3 times faster than a typical Python program. Speed often becomes an important factor in performance-critical applications. For instance, in a core banking system that gets a million hits on a daily basis, a delay of 3 times might create a significant impact on the overall system performance. Therefore, talking about speed, PHP wins by a significant margin over Python. However, it has to be noted that for most simple applications, the scale is quite low and so, there is not much of a noticeable time lag. For instance, for all practical purposes, 10 milliseconds is not much different from 30 milliseconds given that the application isn’t latency-critical.
9th Dec 2019, 3:35 AM
Arsenic
Arsenic - avatar
+ 1
Thanks for the answer, but how could I get PHP 7.x?
9th Dec 2019, 6:53 AM
Ovie Edward Olori
Ovie Edward Olori - avatar
+ 1
Ovie Edward Olori 7.x means 7.1 or 7.2 etc.("x" is a veriable). I have put x just to mark the versions after php 7.0
9th Dec 2019, 9:50 AM
Arsenic
Arsenic - avatar