3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$arr = array(1,2,3,4,5,6,7,8,9,0); $arr = array(1,2,3,4,5,6,7,8,9,0); $i = 0; $links_count = 3; $s = array(); while ($item = current($arr)) { $s[] = "<a href='#'>$item</a>\n"; next($arr); } foreach (array_chunk($s, $links_count) as $val) { echo "<li>\n".implode($val)."</li>\n"; }

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.60.0090.01218.43
8.3.50.0070.00822.05
8.3.40.0040.01118.79
8.3.30.0120.00618.63
8.3.20.0040.00418.74
8.3.10.0080.00019.16
8.3.00.0040.00423.65
8.2.180.0100.01016.32
8.2.170.0040.01122.96
8.2.160.0130.00020.38
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00719.77
8.2.110.0090.00020.77
8.2.100.0040.00717.78
8.2.90.0080.00019.35
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00718.05
8.2.50.0090.00018.10
8.2.40.0000.00918.16
8.2.30.0020.00521.16
8.2.20.0040.00417.77
8.2.10.0040.00417.66
8.2.00.0030.00617.73
8.1.280.0170.00325.92
8.1.270.0040.00423.99
8.1.260.0000.00926.35
8.1.250.0080.00328.09
8.1.240.0070.00321.41
8.1.230.0090.00317.76
8.1.220.0040.00417.78
8.1.210.0090.00018.77
8.1.200.0040.00417.00
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0090.00018.66
8.1.160.0090.00018.89
8.1.150.0000.00718.55
8.1.140.0040.00417.42
8.1.130.0000.00717.79
8.1.120.0000.00717.42
8.1.110.0000.00817.45
8.1.100.0000.00717.46
8.1.90.0040.00417.46
8.1.80.0000.00717.52
8.1.70.0030.00317.39
8.1.60.0000.00817.54
8.1.50.0040.00417.51
8.1.40.0070.00317.52
8.1.30.0080.00017.56
8.1.20.0040.00417.63
8.1.10.0040.00417.38
8.1.00.0020.00517.44
8.0.300.0000.00718.77
8.0.290.0030.00516.75
8.0.280.0000.00718.36
8.0.270.0040.00417.22
8.0.260.0060.00316.94
8.0.250.0080.00016.95
8.0.240.0040.00316.91
8.0.230.0020.00517.02
8.0.220.0070.00016.84
8.0.210.0070.00016.81
8.0.200.0030.00316.87
8.0.190.0000.00716.88
8.0.180.0040.00416.92
8.0.170.0050.00316.87
8.0.160.0040.00416.85
8.0.150.0070.00016.82
8.0.140.0070.00016.84
8.0.130.0000.00613.32
8.0.120.0000.00716.85
8.0.110.0040.00416.84
8.0.100.0000.00716.80
8.0.90.0000.00716.89
8.0.80.0030.01216.94
8.0.70.0050.00216.87
8.0.60.0070.00016.89
8.0.50.0040.00416.74
8.0.30.0050.01417.16
8.0.20.0130.00617.40
8.0.10.0050.00217.03
8.0.00.0080.00916.69
7.4.330.0020.00214.66
7.4.320.0000.00616.56
7.4.300.0000.00616.50
7.4.290.0000.00716.61
7.4.280.0070.00016.54
7.4.270.0000.00716.41
7.4.260.0000.00613.23
7.4.250.0050.00316.59
7.4.240.0000.00716.55
7.4.230.0040.00416.45
7.4.220.0100.00716.59
7.4.210.0090.00616.60
7.4.200.0000.00716.58
7.4.190.0070.00016.55
7.4.160.0060.00916.52
7.4.150.0110.00617.40
7.4.140.0110.01217.86
7.4.130.0090.00816.45
7.4.120.0100.01016.45
7.4.110.0120.00616.41
7.4.100.0150.00916.55
7.4.90.0090.00816.38
7.4.80.0060.00919.39
7.4.70.0110.00716.59
7.4.60.0110.00716.48
7.4.50.0020.00216.36
7.4.40.0030.01322.52
7.4.30.0100.00716.60
7.4.00.0040.00814.73
7.3.330.0020.00313.10
7.3.320.0030.00313.03
7.3.310.0000.00816.36
7.3.300.0090.00016.25
7.3.290.0120.00616.22
7.3.280.0070.00916.24
7.3.270.0000.01717.40
7.3.260.0090.00818.24
7.3.250.0090.01116.25
7.3.240.0070.01016.53
7.3.230.0090.00916.56
7.3.210.0090.01316.38
7.3.200.0090.00919.39
7.3.190.0160.00616.57
7.3.180.0120.00616.38
7.3.170.0090.00816.45
7.3.160.0060.00916.36
7.3.120.0040.01414.79
7.3.10.0250.00716.23
7.3.00.0160.00416.35
7.2.330.0060.01016.65
7.2.320.0100.00616.75
7.2.310.0030.01516.67
7.2.300.0120.00916.41
7.2.290.0060.01216.87
7.2.130.0310.01116.78
7.2.120.0110.00816.82
7.2.110.0470.00316.81
7.2.100.0290.00616.66
7.2.90.0420.01616.92
7.2.80.0370.01017.00
7.2.70.0190.00816.88
7.2.60.0050.01116.66
7.2.50.0080.00816.59
7.2.40.0250.00916.91
7.2.30.0090.00516.58
7.2.20.0240.00316.27
7.2.10.0110.00816.63
7.2.00.0220.00916.62
7.1.250.0400.01015.24
7.1.200.0070.00715.86
7.1.100.0040.00717.90
7.1.70.0040.00417.07
7.1.60.0070.01819.40
7.1.50.0080.01117.04
7.1.00.0000.05722.45
7.0.200.0070.00716.88
7.0.140.0030.07321.92
7.0.70.0070.08321.68
7.0.60.0030.06021.73
7.0.50.0100.08022.01
7.0.40.0100.03720.05
7.0.30.0070.08020.11
7.0.20.0000.07020.11
7.0.10.0030.04319.98
7.0.00.0030.08720.04
5.6.280.0000.07321.14
5.6.220.0030.08720.55
5.6.210.0030.08320.46
5.6.200.0030.08721.00
5.6.190.0030.05021.00
5.6.180.0100.08320.95
5.6.170.0030.08021.03
5.6.160.0100.06721.00
5.6.150.0130.07320.92
5.6.140.0070.08721.03
5.6.130.0070.06321.07
5.6.120.0000.09021.16
5.6.110.0030.06721.07
5.6.100.0030.08321.09
5.6.90.0100.08320.93
5.6.80.0070.05720.39
5.6.70.0030.08020.36
5.6.60.0000.08020.46
5.6.50.0030.05320.42
5.6.40.0070.05320.31
5.6.30.0000.08020.29
5.6.20.0070.05720.52
5.6.10.0030.07720.39
5.6.00.0070.07720.30
5.5.360.0030.08320.43
5.5.350.0100.05720.38
5.5.340.0000.05720.88
5.5.330.0070.03720.73
5.5.320.0000.05720.79
5.5.310.0070.07320.87
5.5.300.0070.07720.79
5.5.290.0000.04720.88
5.5.280.0070.04720.64
5.5.270.0100.07020.85
5.5.260.0100.05320.79
5.5.250.0070.03720.72
5.5.240.0000.04720.30
5.5.230.0100.07720.18
5.5.220.0100.04320.11
5.5.210.0130.07320.29
5.5.200.0070.07020.14
5.5.190.0000.06320.00
5.5.180.0100.08320.14
5.5.160.0030.06320.13
5.5.150.0100.05020.17
5.5.140.0070.05020.27
5.5.130.0030.08020.27
5.5.120.0000.06720.21
5.5.110.0030.07720.07
5.5.100.0030.08020.04
5.5.90.0100.05020.00
5.5.80.0030.04720.06
5.5.70.0000.08320.05
5.5.60.0000.06320.11
5.5.50.0100.06320.14
5.5.40.0030.05719.99
5.5.30.0100.04720.09
5.5.20.0070.07720.09
5.5.10.0070.08019.97
5.5.00.0070.05020.07
5.4.450.0070.08019.27
5.4.440.0030.08319.42
5.4.430.0130.07319.13
5.4.420.0070.07319.11
5.4.410.0030.08319.26
5.4.400.0000.07719.05
5.4.390.0030.07718.98
5.4.380.0030.07019.10
5.4.370.0070.07018.90
5.4.360.0000.08019.07
5.4.350.0030.05019.08
5.4.340.0000.08319.07
5.4.320.0100.06318.81
5.4.310.0070.07718.90
5.4.300.0000.05719.23
5.4.290.0000.08319.11
5.4.280.0000.06018.90
5.4.270.0000.07718.80
5.4.260.0030.08019.02
5.4.250.0070.04319.00
5.4.240.0070.03719.09
5.4.230.0000.08019.13
5.4.220.0070.04719.11
5.4.210.0030.07318.89
5.4.200.0100.07019.11
5.4.190.0070.07318.95
5.4.180.0000.05719.06
5.4.170.0030.05719.10
5.4.160.0100.05718.81
5.4.150.0070.07719.07
5.4.140.0100.06316.35
5.4.130.0070.07016.27
5.4.120.0000.08016.09
5.4.110.0030.07316.26
5.4.100.0100.06716.30
5.4.90.0030.07016.23
5.4.80.0030.05016.35
5.4.70.0000.07316.34
5.4.60.0070.06716.23
5.4.50.0000.08016.35
5.4.40.0070.06316.25
5.4.30.0000.07316.17
5.4.20.0070.06316.23
5.4.10.0070.06316.32
5.4.00.0030.07015.81
5.3.290.0100.07714.50
5.3.280.0000.06314.59
5.3.270.0070.07314.61
5.3.260.0030.05314.60
5.3.250.0000.08014.47
5.3.240.0030.07014.55
5.3.230.0030.05314.61
5.3.220.0000.07714.40
5.3.210.0170.07314.57
5.3.200.0000.07714.55
5.3.190.0000.08014.56
5.3.180.0100.07014.55
5.3.170.0000.05314.53
5.3.160.0030.07714.52
5.3.150.0030.07714.50
5.3.140.0070.07314.52
5.3.130.0070.05714.41
5.3.120.0000.07714.54
5.3.110.0000.05314.54
5.3.100.0070.07013.86
5.3.90.0000.06313.93
5.3.80.0100.06714.00
5.3.70.0000.08013.96
5.3.60.0030.05313.78
5.3.50.0000.08013.80
5.3.40.0000.08013.86
5.3.30.0000.07313.76
5.3.20.0000.07313.70
5.3.10.0000.07713.51
5.3.00.0030.07013.61
5.2.170.0030.06312.15
5.2.160.0000.03712.15
5.2.150.0070.06012.15
5.2.140.0000.06712.15
5.2.130.0000.06312.15
5.2.120.0000.04712.15
5.2.110.0030.06012.15
5.2.100.0030.06312.15
5.2.90.0030.04712.15
5.2.80.0000.04312.15
5.2.70.0030.06312.15
5.2.60.0070.05712.15
5.2.50.0030.06012.15
5.2.40.0000.06712.15
5.2.30.0000.06712.15
5.2.20.0030.04712.15
5.2.10.0030.05012.15
5.2.00.0070.05712.15
5.1.60.0070.03312.15
5.1.50.0030.03312.15
5.1.40.0000.04012.15
5.1.30.0030.05712.15
5.1.20.0030.05312.15
5.1.10.0000.04312.15
5.1.00.0000.06312.15
5.0.50.0070.03712.15
5.0.40.0070.04312.15
5.0.30.0000.06312.15
5.0.20.0030.04312.15
5.0.10.0000.04312.15
5.0.00.0000.06312.15
4.4.90.0000.02712.15
4.4.80.0000.02712.15
4.4.70.0030.03712.15
4.4.60.0000.03012.15
4.4.50.0000.02712.15
4.4.40.0000.03712.15
4.4.30.0000.03712.15
4.4.20.0030.02312.15
4.4.10.0000.03712.15
4.4.00.0030.04012.15
4.3.110.0070.02712.15
4.3.100.0030.03012.15
4.3.90.0000.03712.15
4.3.80.0000.04712.15
4.3.70.0000.03712.15
4.3.60.0000.03712.15
4.3.50.0030.02712.15
4.3.40.0030.05312.15
4.3.30.0030.03012.15
4.3.20.0000.03712.15
4.3.10.0000.04012.15
4.3.00.0000.03712.15

preferences:
43.13 ms | 401 KiB | 5 Q