3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("x",10000); $y = 0; for($i=0;$i<x;$i++){ $y = $i+$y; } echo $y

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.220.0090.04012.34
5.4.210.0130.03812.34
5.4.200.0090.05012.34
5.4.190.0100.04612.33
5.4.180.0100.04212.34
5.4.170.0110.04412.34
5.4.160.0090.04312.34
5.4.150.0120.04012.33
5.4.140.0090.04312.02
5.4.130.0090.04512.00
5.4.120.0100.04111.97
5.4.110.0120.03811.97
5.4.100.0100.04111.97
5.4.90.0070.04511.96
5.4.80.0100.03911.96
5.4.70.0100.03711.96
5.4.60.0110.03711.96
5.4.50.0100.03911.96
5.4.40.0090.04311.95
5.4.30.0100.04111.94
5.4.20.0100.04511.94
5.4.10.0080.04411.95
5.4.00.0080.04111.43
5.3.270.0100.04112.72
5.3.260.0100.04212.72
5.3.250.0090.04012.72
5.3.240.0080.04312.72
5.3.230.0110.04212.71
5.3.220.0100.04112.68
5.3.210.0090.04312.68
5.3.200.0120.03912.68
5.3.190.0110.04012.68
5.3.180.0120.04412.67
5.3.170.0100.04112.67
5.3.160.0110.03812.67
5.3.150.0120.03912.67
5.3.140.0100.04012.66
5.3.130.0100.04512.66
5.3.120.0100.04612.65
5.3.110.0100.04512.66
5.3.100.0090.04612.12
5.3.90.0100.04312.09
5.3.80.0110.03912.08
5.3.70.0120.03712.08
5.3.60.0090.04212.07
5.3.50.0110.04212.00
5.3.40.0100.04412.00
5.3.30.0100.03811.94
5.3.20.0130.03611.71
5.3.10.0090.03911.67
5.3.00.0090.04011.67
5.2.170.0100.0309.16
5.2.160.0100.0299.16
5.2.150.0080.0339.16
5.2.140.0080.0349.16
5.2.130.0090.0349.12
5.2.120.0090.0329.12
5.2.110.0070.0339.13
5.2.100.0080.0319.12
5.2.90.0090.0329.12
5.2.80.0100.0339.11
5.2.70.0120.0339.11
5.2.60.0090.0369.07
5.2.50.0080.0379.04
5.2.40.0070.0349.01
5.2.30.0070.0378.99
5.2.20.0080.0368.98
5.2.10.0060.0328.90
5.2.00.0070.0328.76
5.1.60.0080.0268.05
5.1.50.0070.0278.05
5.1.40.0070.0258.04
5.1.30.0070.0288.38
5.1.20.0080.0278.40
5.1.10.0060.0298.13
5.1.00.0060.0308.13
5.0.50.0070.0216.60
5.0.40.0060.0206.46
5.0.30.0050.0346.28
5.0.20.0070.0206.25
5.0.10.0050.0216.23
5.0.00.0040.0356.22
4.4.90.0060.0164.78
4.4.80.0030.0184.76
4.4.70.0050.0164.75
4.4.60.0060.0154.75
4.4.50.0040.0174.77
4.4.40.0050.0274.71
4.4.30.0060.0164.76
4.4.20.0030.0174.84
4.4.10.0040.0174.85
4.4.00.0040.0274.76
4.3.110.0050.0154.67
4.3.100.0050.0154.67
4.3.90.0050.0154.63
4.3.80.0070.0244.58
4.3.70.0040.0174.63
4.3.60.0060.0164.63
4.3.50.0050.0204.63
4.3.40.0060.0244.54
4.3.30.0040.0183.29
4.3.20.0030.0193.27
4.3.10.0030.0173.22
4.3.00.0100.0206.55

preferences:
142.27 ms | 1394 KiB | 7 Q