3 ответов
+ 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.
+ 1
Thanks for the answer, but how could I get PHP 7.x?
+ 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