3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = 0; $n = 0; $m = 0; $list = array(8,1,7,-7,2,4,5,-14,0,1); for ($i=0;$i<=9;$i++) { if ($list[$i] >= 4) { $total = $total + $list[$i]; $m = $m + 1; } if ($list[$i] == 0) { $n = $n + 1; } } echo "The sum of the bigges is ".$total.<br />; echo "There were ".$n." zeros and ".$m." biggies." ?>

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.210.0100.04012.38
5.4.200.0100.04212.38
5.4.190.0120.04012.37
5.4.180.0090.04112.38
5.4.170.0100.04112.38
5.4.160.0110.03912.37
5.4.150.0120.05812.37
5.4.140.0130.04512.07
5.4.130.0120.04312.04
5.4.120.0080.04812.01
5.4.110.0120.04412.01
5.4.100.0120.04212.01
5.4.90.0120.04312.01
5.4.80.0100.04112.01
5.4.70.0120.03912.01
5.4.60.0090.04012.00
5.4.50.0200.06112.00
5.4.40.0120.04511.99
5.4.30.0100.05211.99
5.4.20.0120.04511.98
5.4.10.0100.04511.99
5.4.00.0140.03811.48
5.3.270.0130.05212.72
5.3.260.0160.04412.72
5.3.250.0130.04512.72
5.3.240.0120.04412.72
5.3.230.0150.04212.71
5.3.220.0130.04012.68
5.3.210.0120.04712.68
5.3.200.0120.04212.68
5.3.190.0100.04612.68
5.3.180.0210.06212.67
5.3.170.0090.04512.67
5.3.160.0130.03912.67
5.3.150.0110.04612.67
5.3.140.0120.04212.66
5.3.130.0110.04412.66
5.3.120.0100.04212.66
5.3.110.0110.04312.66
5.3.100.0100.04212.12
5.3.90.0110.04112.08
5.3.80.0100.04612.08
5.3.70.0100.04312.07
5.3.60.0170.06812.06
5.3.50.0110.04112.00
5.3.40.0140.03812.00
5.3.30.0110.03811.95
5.3.20.0170.04911.72
5.3.10.0130.03711.69
5.3.00.0120.04111.67

preferences:
140.53 ms | 1394 KiB | 7 Q