3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = [0,0,0]; $range = 100000; $c = range(0,$range-1); for($a = 0;$a < 10;$a++){ $t = microtime(true); for($i = 1;++$i < $range;)$i; $r[0] += microtime(true) - $t; $t = microtime(true); foreach($c as $i)$i; $r[1] += microtime(true) - $t; $t = microtime(true); $i = 0; while(++$i < $range)$i; $r[2] += microtime(true) - $t; } var_dump($r);

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.3.10.0000.03420.52
7.3.00.0040.03920.37
7.2.130.0000.04020.83
7.2.120.0030.04120.64
7.2.110.0070.03020.45
7.2.100.0030.03620.75
7.2.90.0030.04120.77
7.2.80.0030.03920.43
7.2.70.0060.02820.73
7.2.60.0110.03520.91
7.2.50.0070.03520.57
7.2.40.0070.02920.79
7.2.30.0070.03820.83
7.2.20.0100.03520.76
7.2.10.0070.03620.75
7.2.00.0020.03721.83
7.1.250.0030.06119.61
7.1.70.0100.01620.80
7.1.60.0130.05221.20
7.1.50.0130.04920.54
7.1.00.0000.10726.21
7.0.200.0030.02720.73
7.0.140.0070.10325.99
7.0.60.0070.11022.82
7.0.50.0070.12020.65
7.0.40.0070.09022.61
7.0.30.0330.10322.53
7.0.20.0200.06722.55
7.0.10.0000.06323.87
7.0.00.0170.10722.68
5.6.280.0030.18335.11
5.6.210.0100.13034.58
5.6.200.0130.11032.17
5.6.190.0130.12334.20
5.6.180.0630.15734.20
5.6.170.0470.15034.46
5.6.160.0030.11734.43
5.6.150.0100.10732.17
5.6.140.0030.12032.16
5.6.130.0130.12732.11
5.6.120.0130.11735.05
5.6.110.0030.14035.02
5.6.100.0130.11035.01
5.6.90.0130.18335.02
5.6.80.0200.16334.44
5.6.70.4100.11734.31
5.5.350.0130.16034.45
5.5.340.0170.11731.92
5.5.330.0070.18034.13
5.5.320.0230.14034.27
5.5.310.0330.15734.23
5.5.300.0170.11031.96
5.5.290.0100.18731.96
5.5.280.0070.12034.91
5.5.270.0100.18034.76
5.5.260.0200.17734.76
5.5.250.0170.17034.81
5.5.240.0330.16334.25
5.4.450.1130.19033.38
5.4.440.1130.17733.24
5.4.430.0930.19733.07
5.4.420.2000.00033.43
5.4.410.0300.16332.94
5.4.400.0930.16732.62
5.4.390.0300.16332.71
5.4.380.0400.17332.55
5.4.370.0130.12732.70
5.4.360.0230.16032.71
5.4.350.0160.17026.01
5.4.340.0120.12226.01
5.4.320.0140.12526.49
5.4.310.0090.12026.48
5.4.300.0140.12726.49
5.4.290.0110.12526.48
5.4.280.0090.12326.38
5.4.270.0110.12426.39
5.4.260.0070.12626.39
5.4.250.0080.12226.38
5.4.240.0080.11926.39
5.4.230.0090.12226.38
5.4.220.0080.12026.38
5.4.210.0470.24126.36
5.4.200.0480.22826.36
5.4.190.0330.15426.36
5.4.180.0370.16126.36
5.4.170.0330.16326.37
5.4.160.0470.24726.36
5.4.150.0370.17726.36
5.4.140.0330.15526.04
5.4.130.0270.15726.03
5.4.120.0380.22425.99
5.4.110.0290.16125.98
5.4.100.0260.18525.98
5.4.90.0290.16025.98
5.4.80.0390.28625.98
5.4.70.0430.22925.98
5.4.60.0300.16325.98
5.4.50.0430.20225.98
5.4.40.0340.15925.96
5.4.30.0320.16725.96
5.4.20.0290.17125.97
5.4.10.0450.22325.96
5.4.00.0260.17525.45
5.3.290.0100.04012.80
5.3.280.0060.04512.71
5.3.270.0190.04712.72
5.3.260.0230.04112.72
5.3.250.0180.04512.72
5.3.240.0170.05112.72
5.3.230.0200.04712.71
5.3.220.0210.05112.68
5.3.210.0380.09212.68
5.3.200.0280.04612.68
5.3.190.0200.05012.68
5.3.180.0190.04312.67
5.3.170.0230.03712.67
5.3.160.0120.04912.67
5.3.150.0110.04912.67
5.3.140.0160.04412.66
5.3.130.0160.04412.66
5.3.120.0180.04212.66
5.3.110.0220.04112.66
5.3.100.0160.04712.12
5.3.90.0180.04312.08
5.3.80.0190.04512.08
5.3.70.0140.04512.07
5.3.60.0110.05012.06
5.3.50.0200.04412.00
5.3.40.0140.04812.00
5.3.30.0170.04111.94
5.3.20.0200.04111.71
5.3.10.0170.04111.67
5.3.00.0160.04211.66
5.2.170.0110.0369.16
5.2.160.0230.0589.16
5.2.150.0160.0429.16
5.2.140.0130.0389.16
5.2.130.0160.0329.13
5.2.120.0070.0399.13
5.2.110.0180.0309.13
5.2.100.0090.0389.13
5.2.90.0130.0389.12
5.2.80.0120.0379.11
5.2.70.0170.0379.11
5.2.60.0110.0389.07
5.2.50.0120.0409.04
5.2.40.0130.0369.01
5.2.30.0140.0348.99
5.2.20.0140.0368.98
5.2.10.0150.0358.91
5.2.00.0140.0348.76
5.1.60.0120.0318.05
5.1.50.0110.0308.05
5.1.40.0120.0308.03
5.1.30.0140.0298.37
5.1.20.0170.0278.41
5.1.10.0190.0288.13
5.1.00.0100.0328.13
5.0.50.0100.0246.60
5.0.40.0080.0246.46
5.0.30.0090.0366.28
5.0.20.0080.0276.25
5.0.10.0080.0266.23
5.0.00.0130.0366.21
4.4.90.0070.0194.78
4.4.80.0130.0184.75
4.4.70.0100.0174.76
4.4.60.0050.0254.75
4.4.50.0100.0164.77
4.4.40.0140.0284.70
4.4.30.0110.0234.75
4.4.20.0130.0184.84
4.4.10.0110.0174.85
4.4.00.0100.0274.76
4.3.110.0110.0174.67
4.3.100.0060.0224.66
4.3.90.0100.0164.63
4.3.80.0100.0284.58
4.3.70.0070.0194.63
4.3.60.0080.0194.63
4.3.50.0100.0204.63
4.3.40.0130.0274.54
4.3.30.0070.0173.28
4.3.20.0070.0173.27
4.3.10.0060.0213.23
4.3.00.0170.0205.86

preferences:
30.51 ms | 401 KiB | 5 Q