3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result=range(1,10); $left=count($result); $colLeft=3; $limit=0; $i=0; foreach($result as $row) { if($i==0) { $limit=ceil($left/$colLeft); echo '<ul>'; } echo '<li>'.$row.'</li>'; $i++; $left--; if($i>=$limit) { echo '</ul>'; $i=0; $colLeft--; } }

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)
8.3.40.0090.00618.57
8.3.30.0100.01020.38
8.3.20.0080.00020.18
8.3.10.0050.00322.09
8.3.00.0070.00022.46
8.2.170.0060.00822.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.77
8.2.110.0050.00520.66
8.2.100.0110.00017.91
8.2.90.0000.00819.34
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0030.00718.16
8.2.50.0080.00018.07
8.2.40.0000.00718.22
8.2.30.0000.00718.11
8.2.20.0030.00717.67
8.2.10.0040.00417.70
8.2.00.0060.00317.84
8.1.270.0090.00620.40
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00419.65
8.1.230.0090.00317.58
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0040.00417.65
8.1.180.0000.00918.84
8.1.170.0030.00518.52
8.1.160.0040.00422.19
8.1.150.0070.00318.72
8.1.140.0000.00817.54
8.1.130.0000.00717.87
8.1.120.0040.00417.54
8.1.110.0030.00617.43
8.1.100.0030.00417.43
8.1.90.0040.00417.41
8.1.80.0070.00017.49
8.1.70.0030.00317.44
8.1.60.0060.00317.63
8.1.50.0080.00317.48
8.1.40.0040.00417.60
8.1.30.0060.00317.57
8.1.20.0040.00417.71
8.1.10.0000.00717.50
8.1.00.0000.00817.38
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.49
8.0.270.0070.00017.32
8.0.260.0030.00316.87
8.0.250.0000.00717.02
8.0.240.0030.00516.83
8.0.230.0000.00716.93
8.0.220.0040.00416.98
8.0.210.0070.00016.91
8.0.200.0000.00717.04
8.0.190.0000.00816.94
8.0.180.0000.00716.96
8.0.170.0020.00517.01
8.0.160.0000.00816.92
8.0.150.0080.00016.84
8.0.140.0050.00316.87
8.0.130.0060.00013.39
8.0.120.0030.00516.88
8.0.110.0040.00416.93
8.0.100.0000.00716.97
8.0.90.0030.00316.97
8.0.80.0060.00916.93
8.0.70.0050.00216.80
8.0.60.0040.00416.93
8.0.50.0070.00016.94
8.0.30.0120.00717.11
8.0.20.0130.00517.40
8.0.10.0000.00817.16
8.0.00.0180.01516.92
7.4.330.0000.00515.00
7.4.320.0040.00416.58
7.4.300.0030.00316.59
7.4.290.0030.00316.59
7.4.280.0030.00316.47
7.4.270.0070.00016.53
7.4.260.0000.00716.64
7.4.250.0000.00716.63
7.4.240.0040.00316.52
7.4.230.0030.00316.69
7.4.220.0130.00316.76
7.4.210.0110.00516.59
7.4.200.0000.00716.73
7.4.190.0070.00016.82
7.4.160.0090.00616.50
7.4.150.0130.00417.40
7.4.140.0050.01617.86
7.4.130.0130.00616.48
7.4.120.0110.00816.59
7.4.110.0070.01016.56
7.4.100.0090.01316.65
7.4.90.0140.00316.57
7.4.80.0040.01319.39
7.4.70.0120.00916.68
7.4.60.0120.00616.58
7.4.50.0000.00816.76
7.4.40.0120.00322.77
7.4.30.0100.01016.46
7.4.10.0040.00714.96
7.4.00.0030.00815.00
7.3.330.0020.00213.15
7.3.320.0020.00213.27
7.3.310.0030.00316.23
7.3.300.0030.00316.30
7.3.290.0090.00616.32
7.3.280.0090.00716.38
7.3.270.0180.00017.40
7.3.260.0030.01416.35
7.3.250.0170.00016.55
7.3.240.0150.00516.57
7.3.230.0100.00716.57
7.3.210.0080.00816.55
7.3.200.0120.00619.39
7.3.190.0180.00416.39
7.3.180.0120.00616.71
7.3.170.0130.00616.39
7.3.160.0060.00916.63
7.3.130.0050.00515.14
7.3.120.0000.01415.04
7.3.110.0080.00315.05
7.3.100.0040.00714.27
7.3.90.0070.00314.98
7.3.80.0070.00414.75
7.3.70.0070.00414.89
7.3.60.0080.00314.59
7.3.50.0030.00714.66
7.3.40.0030.00714.36
7.3.30.0040.00714.91
7.3.20.0040.00416.72
7.3.10.0090.00616.66
7.3.00.0040.00416.73
7.2.330.0070.01116.57
7.2.320.0130.01016.97
7.2.310.0150.00316.50
7.2.300.0040.01316.76
7.2.290.0160.00916.91
7.2.260.0090.00315.13
7.2.250.0040.00815.01
7.2.240.0060.00614.82
7.2.230.0040.00915.01
7.2.220.0120.00015.01
7.2.210.0000.01215.17
7.2.200.0110.00215.23
7.2.190.0000.01214.94
7.2.180.0040.00814.76
7.2.170.0000.01115.14
7.2.160.0090.00314.77
7.2.150.0040.00817.06
7.2.140.0060.00916.92
7.2.130.0060.00616.96
7.2.120.0130.00016.75
7.2.110.0100.00616.78
7.2.100.0030.00517.03
7.2.90.0060.00616.91
7.2.80.0060.00817.00
7.2.70.0070.00716.98
7.2.60.0030.00717.05
7.2.50.0060.00617.10
7.2.40.0030.00716.96
7.2.30.0030.01016.55
7.2.20.0090.00317.00
7.2.10.0110.00416.92
7.2.00.0000.01416.84
7.1.330.0040.00715.91
7.1.320.0040.00715.48
7.1.310.0040.00715.75
7.1.300.0070.00415.96
7.1.290.0060.00415.96
7.1.280.0090.00215.88
7.1.270.0120.00015.88
7.1.260.0030.00715.99
7.1.250.0060.00615.70
7.1.240.0030.00915.50
7.1.230.0030.00715.93
7.1.220.0040.00715.77
7.1.210.0070.00315.76
7.1.200.0080.00315.89
7.1.190.0080.00415.96
7.1.180.0030.00815.93
7.1.170.0000.00816.01
7.1.160.0040.00815.86
7.1.150.0040.00415.80
7.1.140.0000.00715.81
7.1.130.0000.01515.93
7.1.120.0000.01115.77
7.1.110.0030.01015.73
7.1.100.0080.00216.92
7.1.90.0000.01015.93
7.1.80.0060.00915.68
7.1.70.0050.00616.47
7.1.60.0100.00917.50
7.1.50.0080.01016.40
7.1.40.0070.00715.53
7.1.30.0080.00015.55
7.1.20.0030.00915.73
7.1.10.0090.00315.88
7.1.00.0030.03019.28
7.0.330.0030.00615.60
7.0.320.0030.01015.59
7.0.310.0060.00615.01
7.0.300.0030.00715.16
7.0.290.0090.00315.16
7.0.280.0030.00915.44
7.0.270.0000.00715.30
7.0.260.0040.00815.31
7.0.250.0040.00815.43
7.0.240.0040.00415.48
7.0.230.0040.00815.68
7.0.220.0050.00315.57
7.0.210.0070.00715.24
7.0.200.0220.01115.13
7.0.190.0070.00715.52
7.0.180.0030.00815.16
7.0.170.0080.00415.47
7.0.160.0030.00915.38
7.0.150.0060.00315.27
7.0.140.0020.04618.71
7.0.130.0060.00915.39
7.0.120.0040.01115.55
7.0.110.0040.00415.59
7.0.100.0000.00715.55
7.0.90.0080.00815.59
7.0.80.0100.00615.23
7.0.70.0000.01315.29
7.0.60.0080.02117.55
7.0.50.0030.04716.66
7.0.40.0030.03716.89
7.0.30.0210.03816.75
7.0.20.0100.03016.61
7.0.10.0080.04516.73
7.0.00.0050.04716.81
5.6.400.0030.00714.54
5.6.390.0000.01614.39
5.6.380.0030.00514.33
5.6.370.0030.00714.46
5.6.360.0060.00614.38
5.6.350.0000.01014.54
5.6.340.0030.00914.63
5.6.330.0040.00414.19
5.6.320.0000.00914.44
5.6.310.0040.00814.34
5.6.300.0060.00314.61
5.6.290.0000.00914.20
5.6.280.0080.03717.58
5.6.270.0030.00614.29
5.6.260.0080.00014.64
5.6.250.0030.01414.09
5.6.240.0030.01314.27
5.6.230.0120.00314.32
5.6.220.0030.00714.24
5.6.210.0080.02217.50
5.6.200.0030.03416.21
5.6.190.0030.02517.41
5.6.180.0350.01917.38
5.6.170.0140.03617.39
5.6.160.0100.04517.28
5.6.150.0000.03116.34
5.6.140.0070.04316.23
5.6.130.0080.04516.20
5.6.120.0070.04217.58
5.6.110.0080.04317.51
5.6.100.0050.04717.60
5.6.90.0120.04017.64
5.6.80.0050.03317.42
5.6.70.0030.00713.92
5.6.60.0110.00414.15
5.6.50.0030.01013.93
5.6.40.0060.00614.34
5.6.30.0050.00514.28
5.6.20.0030.01014.25
5.6.10.0030.00614.14
5.6.00.0030.01014.32
5.5.380.0090.00614.02
5.5.370.0040.00814.13
5.5.360.0090.00614.13
5.5.350.0200.03817.35
5.5.340.0100.03315.99
5.5.330.0050.02517.38
5.5.320.0250.03517.26
5.5.310.0270.02517.30
5.5.300.0040.02816.15
5.5.290.0060.02316.23
5.5.280.0090.04417.71
5.5.270.0020.02717.63
5.5.260.0050.04517.59
5.5.250.0050.02817.30
5.5.240.0100.03517.16
5.5.230.0040.01114.02
5.5.220.0040.00413.91
5.5.210.0060.00613.93
5.5.200.0100.00314.05
5.5.190.0040.01114.08
5.5.180.0100.00714.17
5.5.170.0080.00314.30
5.5.160.0000.01514.19
5.5.150.0070.00714.14
5.5.140.0000.01514.36
5.5.130.0060.00613.79
5.5.120.0060.00314.33
5.5.110.0000.01314.26
5.5.100.0080.00614.19
5.5.90.0060.00314.26
5.5.80.0060.00914.18
5.5.70.0030.01014.24
5.5.60.0030.00714.33
5.5.50.0060.00614.17
5.5.40.0060.00313.93
5.5.30.0060.00314.17
5.5.20.0070.00714.19
5.5.10.0080.00014.07
5.5.00.0000.01314.09
5.4.450.0350.03015.16
5.4.440.0300.03315.38
5.4.430.0050.03315.42
5.4.420.0070.03015.21
5.4.410.0000.03715.17
5.4.400.0100.02615.06
5.4.390.0080.03515.15
5.4.380.0050.03115.03
5.4.370.0090.03614.96
5.4.360.0110.03214.97
5.4.350.0080.02211.50
5.4.340.0090.01511.37
5.4.330.0000.01210.87
5.4.320.0080.02011.76
5.4.310.0060.02211.68
5.4.300.0080.02011.73
5.4.290.0080.02111.74
5.4.280.0080.01611.60
5.4.270.0080.02511.67
5.4.260.0060.01911.56
5.4.250.0090.03715.06
5.4.240.0140.03114.95
5.4.230.0080.03014.65
5.4.220.0110.02614.92
5.4.210.0110.03514.98
5.4.200.0120.02614.98
5.4.190.0110.02214.75
5.4.180.0100.02714.90
5.4.170.0030.03314.89
5.4.160.0100.02714.93
5.4.150.0080.03014.98
5.4.140.0050.03713.62
5.4.130.0080.02813.58
5.4.120.0070.02813.79
5.4.110.0050.03513.68
5.4.100.0070.02913.65
5.4.90.0070.02713.64
5.4.80.0050.02913.69
5.4.70.0070.02813.82
5.4.60.0070.02813.48
5.4.50.0020.03913.58
5.4.40.0100.02513.64
5.4.30.0100.02313.61
5.4.20.0020.03913.72
5.4.10.0080.03813.65
5.4.00.0080.02713.38
5.3.290.0030.02511.65
5.3.280.0070.03712.45
5.3.270.0130.03312.36
5.3.260.0080.02812.46
5.3.250.0030.03112.49
5.3.240.0070.03012.47
5.3.230.0140.03312.43
5.3.220.0110.02712.40
5.3.210.0170.02012.46
5.3.200.0140.02512.33
5.3.190.0110.02612.43
5.3.180.0070.03212.49
5.3.170.0090.02612.44
5.3.160.0050.03512.63
5.3.150.0170.02012.44
5.3.140.0080.04012.45
5.3.130.0120.02712.44
5.3.120.0090.03512.34
5.3.110.0070.03212.45
5.3.100.0110.03112.32
5.3.90.0070.02812.20
5.3.80.0050.03912.10
5.3.70.0020.03412.14
5.3.60.0050.02812.29
5.3.50.0070.02711.99
5.3.40.0000.03711.99
5.3.30.0080.03512.13
5.3.20.0030.03811.88
5.3.10.0110.02511.88
5.3.00.0090.02311.72
5.2.170.0070.04311.05
5.2.160.0130.04711.02
5.2.150.0030.04711.16
5.2.140.0130.04311.04
5.2.130.0070.03711.10
5.2.120.0070.04311.12
5.2.110.0030.05011.10
5.2.100.0070.03711.00
5.2.90.0030.04311.19
5.2.80.0030.04011.24
5.2.70.0130.03711.20
5.2.60.0000.04311.04
5.2.50.0100.03311.04
5.2.40.0030.04710.88
5.2.30.0000.05010.98
5.2.20.0030.04010.96
5.2.10.0000.04310.94
5.2.00.0030.04310.71
5.1.60.0070.0309.98
5.1.50.0130.0339.96
5.1.40.0000.03710.12
5.1.30.0030.03710.39
5.1.20.0030.03710.33
5.1.10.0070.03010.30
5.1.00.0070.03710.09
5.0.50.0030.0308.37
5.0.40.0000.0308.45
5.0.30.0100.0378.14
5.0.20.0070.0238.15
5.0.10.0000.0308.08
5.0.00.0000.0438.20
4.4.90.0000.0237.34
4.4.80.0000.0237.34
4.4.70.0030.0207.34
4.4.60.0030.0207.34
4.4.50.0030.0207.34
4.4.40.0030.0337.34
4.4.30.0000.0237.34
4.4.20.0000.0237.40
4.4.10.0070.0177.40
4.4.00.0000.0337.40
4.3.110.0070.0237.40
4.3.100.0000.0237.40
4.3.90.0000.0237.40
4.3.80.0030.0437.40
4.3.70.0000.0207.40
4.3.60.0030.0277.40
4.3.50.0000.0237.40
4.3.40.0000.0337.40
4.3.30.0000.0237.40
4.3.20.0000.0237.40
4.3.10.0030.0237.40
4.3.00.0070.0236.91

preferences:
46.06 ms | 400 KiB | 5 Q