3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; for ($i=0; $i < 3; $i++) print($x = $x / 10^$i, json_encode($x));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.40.0100.03711.98
5.4.30.0130.05111.98
5.4.20.0110.03911.97
5.4.10.0120.03711.98
5.4.00.0090.03911.47
5.3.140.0100.04312.66
5.3.130.0120.04512.66
5.3.120.0100.04812.66
5.3.110.0100.04312.66
5.3.100.0110.04512.12
5.3.90.0110.04512.08
5.3.80.0090.04412.08
5.3.70.0110.04012.07
5.3.60.0120.04912.07
5.3.50.0140.05512.00
5.3.40.0090.04012.00
5.3.30.0120.03711.95
5.3.20.0100.03911.72
5.3.10.0100.04211.68
5.3.00.0120.04311.67

preferences:
141.31 ms | 1394 KiB | 7 Q