3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = array(1, 2, 3, 4, 5, 6, 7,8,9,10,11,12,13,14,15,16,17,18,19,20); foreach (array_rand($numbers, 19) as $key) { echo '<div class="avatar"><img src="'.$numbers[$key].'.png" /></div>'; }?>

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)
7.4.00.0090.00915.19
7.3.120.0070.01314.68
7.3.110.0030.01214.77
7.3.100.0030.00914.78
7.3.90.0030.01014.84
7.3.80.0000.01514.95
7.3.70.0030.00614.63
7.3.60.0100.00714.79
7.3.50.0060.00314.66
7.3.40.0120.00314.80
7.3.30.0070.01014.79
7.3.20.0070.01016.70
7.3.10.0000.01516.70
7.3.00.0030.01016.43
7.2.250.0110.00414.81
7.2.240.0040.01414.86
7.2.230.0110.00415.19
7.2.220.0000.01315.18
7.2.210.0040.00715.27
7.2.200.0030.00715.11
7.2.190.0040.01414.90
7.2.180.0060.00915.07
7.2.170.0040.01114.97
7.2.00.0030.01019.45
7.1.330.0040.01115.62
7.1.320.0060.00915.81
7.1.310.0030.01015.74
7.1.300.0000.00915.88
7.1.290.0070.01015.78
7.1.280.0100.00315.51
7.1.270.0100.00715.71
7.1.260.0040.01115.88
7.1.70.0040.00416.94
7.1.60.0110.01519.82
7.1.50.0000.01316.64
7.1.00.0030.07722.51
7.0.200.0030.00616.82
7.0.140.0070.07022.00
7.0.100.0070.07720.00
7.0.90.0230.04319.86
7.0.80.0070.05719.85
7.0.70.0130.06019.88
7.0.60.0170.04319.94
7.0.50.0070.07320.34
7.0.40.0070.05320.14
7.0.30.0000.06020.14
7.0.20.0100.07320.05
7.0.10.0030.07019.95
7.0.00.0000.06320.14
5.6.280.0000.07721.12
5.6.250.0030.04720.62
5.6.240.0030.06320.69
5.6.230.0100.07320.50
5.6.220.0070.06720.67
5.6.210.0070.06720.66
5.6.200.0130.08321.02
5.6.190.0070.07321.05
5.6.180.0130.06320.98
5.6.170.0130.07721.06
5.6.160.0130.07721.16
5.6.150.0100.06320.96
5.6.140.0070.06021.02
5.6.130.0030.08720.93
5.6.120.0030.04721.08
5.6.110.0130.08320.93
5.6.100.0070.06021.05
5.6.90.0070.07321.14
5.6.80.0070.08020.33
5.6.70.0100.08020.45
5.6.60.0100.04020.45
5.6.50.0070.07720.55
5.6.40.0100.06720.31
5.6.30.0070.07320.38
5.6.20.0170.05320.36
5.6.10.0200.05020.40
5.6.00.0170.05020.47
5.5.380.0130.07020.36
5.5.370.0030.07320.35
5.5.360.0070.06020.39
5.5.350.0230.03020.41
5.5.340.0130.07720.88
5.5.330.0070.07020.88
5.5.320.0030.04020.82
5.5.310.0100.07720.79
5.5.300.0000.08720.88
5.5.290.0070.08020.88
5.5.280.0030.07720.63
5.5.270.0030.06320.84
5.5.260.0070.08020.91
5.5.250.0070.04020.72
5.5.240.0170.05320.16
5.5.230.0070.07020.00
5.5.220.0170.03320.27
5.5.210.0030.07720.29
5.5.200.0100.03720.23
5.5.190.0100.04320.28
5.5.180.0030.07720.23
5.5.160.0100.07020.24
5.5.150.0070.04320.11
5.5.140.0130.07720.24
5.5.130.0070.04020.07
5.5.120.0070.08320.17
5.5.110.0030.04320.26
5.5.100.0170.06020.10
5.5.90.0130.04320.00
5.5.80.0070.03720.00
5.5.70.0100.07019.93
5.5.60.0070.07719.96
5.5.50.0070.07720.08
5.5.40.0070.08020.14
5.5.30.0100.04019.92
5.5.20.0170.05319.96
5.5.10.0000.05720.08
5.5.00.0100.06720.00
5.4.450.0000.08719.45
5.4.440.0000.08319.45
5.4.430.0030.07319.30
5.4.420.0030.08319.35
5.4.410.0100.06019.24
5.4.400.0030.04318.91
5.4.390.0070.04319.12
5.4.380.0070.05319.23
5.4.370.0100.07318.79
5.4.360.0070.04018.78
5.4.350.0130.07319.11
5.4.340.0030.08019.09
5.4.320.0130.07019.07
5.4.310.0200.06018.85
5.4.300.0030.08018.94
5.4.290.0000.06319.05
5.4.280.0000.04718.94
5.4.270.0100.05719.16
5.4.260.0100.06019.02
5.4.250.0100.04719.09
5.4.240.0030.06318.89
5.4.230.0030.05718.89
5.4.220.0070.06719.23
5.4.210.0100.04319.01
5.4.200.0130.07019.05
5.4.190.0070.06018.96
5.4.180.0000.07318.95
5.4.170.0070.03719.06
5.4.160.0030.06018.92
5.4.150.0030.08318.76
5.4.140.0130.07016.29
5.4.130.0000.07316.30
5.4.120.0070.05316.38
5.4.110.0030.07716.35
5.4.100.0030.03716.40
5.4.90.0000.04016.44
5.4.80.0070.07016.31
5.4.70.0000.04316.31
5.4.60.0000.04316.24
5.4.50.0100.06716.24
5.4.40.0030.07316.29
5.4.30.0100.07316.28
5.4.20.0070.04716.18
5.4.10.0000.06716.20
5.4.00.0130.03315.77
5.3.290.0030.04314.52
5.3.280.0070.06714.57
5.3.270.0030.05014.43
5.3.260.0100.07714.46
5.3.250.0070.07314.57
5.3.240.0000.05714.57
5.3.230.0030.08014.46
5.3.220.0000.04314.43
5.3.210.0070.06014.55
5.3.200.0100.06714.41
5.3.190.0100.03714.52
5.3.180.0070.07014.55
5.3.170.0070.07014.53
5.3.160.0030.07714.52
5.3.150.0100.07014.55
5.3.140.0130.07314.56
5.3.130.0030.07714.37
5.3.120.0130.06714.51
5.3.110.0100.07014.57
5.3.100.0100.07713.86
5.3.90.0000.05313.96
5.3.80.0100.07713.98
5.3.70.0070.07013.96
5.3.60.0070.07314.00
5.3.50.0100.06313.94
5.3.40.0100.04013.94
5.3.30.0030.04313.86
5.3.20.0100.04013.54
5.3.10.0100.06713.43
5.3.00.0130.06313.62
5.2.170.0030.03711.58
5.2.160.0070.06711.58
5.2.150.0030.06711.58
5.2.140.0000.06711.58
5.2.130.0000.03711.58
5.2.120.0030.06011.58
5.2.110.0030.05311.58
5.2.100.0030.03711.58
5.2.90.0070.05711.58
5.2.80.0070.06311.58
5.2.70.0000.05011.58
5.2.60.0130.04711.58
5.2.50.0000.03311.58
5.2.40.0000.03311.58
5.2.30.0100.06011.58
5.2.20.0100.06311.58
5.2.10.0030.05311.58
5.2.00.0000.05311.58
5.1.60.0070.05311.58
5.1.50.0030.05311.58
5.1.40.0030.04311.58
5.1.30.0000.06011.58
5.1.20.0070.05011.58
5.1.10.0030.05311.58
5.1.00.0200.04011.58
5.0.50.0030.04311.58
5.0.40.0030.03011.58
5.0.30.0070.05311.58
5.0.20.0030.04311.58
5.0.10.0030.04011.58
5.0.00.0070.06011.58
4.4.90.0030.03311.58
4.4.80.0100.02011.58
4.4.70.0070.02011.58
4.4.60.0000.02011.58
4.4.50.0070.01311.58
4.4.40.0030.04711.58
4.4.30.0030.02011.58
4.4.20.0030.01711.58
4.4.10.0030.02711.58
4.4.00.0000.05311.58
4.3.110.0000.03311.58
4.3.100.0030.02011.58
4.3.90.0000.03711.58
4.3.80.0000.03711.58
4.3.70.0070.02311.58
4.3.60.0030.02311.58
4.3.50.0000.04011.58
4.3.40.0000.03311.58
4.3.30.0030.03311.58
4.3.20.0000.03711.58
4.3.10.0000.04011.58
4.3.00.0070.03311.58

preferences:
35.23 ms | 400 KiB | 5 Q