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); $i = 0; $links_count = 1; $s = ''; while ($item = current($arr)) { $s .= !($i % $links_count) ? "<li>\n" : ""; $s .= "<a href='#'>$item</a>\n"; $s .= !(($i+1) % $links_count) ? "</li>\n" : ""; $i++; next($arr); } $s .= ($i % $links_count) ? "</li>\n" : ''; echo $s;

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.0080.00818.45
8.3.50.0140.01421.14
8.3.40.0140.00018.71
8.3.30.0110.00418.68
8.3.20.0080.00018.64
8.3.10.0040.00420.92
8.3.00.0040.00423.67
8.2.180.0140.00316.63
8.2.170.0120.00322.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0030.00619.32
8.2.110.0110.00020.52
8.2.100.0070.00417.72
8.2.90.0040.00419.17
8.2.80.0000.00917.97
8.2.70.0030.00617.63
8.2.60.0000.00918.05
8.2.50.0080.00318.07
8.2.40.0030.00518.13
8.2.30.0080.00019.96
8.2.20.0040.00417.61
8.2.10.0040.00417.64
8.2.00.0040.00417.67
8.1.270.0070.00023.99
8.1.260.0160.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00722.55
8.1.230.0030.00720.96
8.1.220.0040.00418.77
8.1.210.0030.00618.83
8.1.200.0060.00317.23
8.1.190.0040.00417.53
8.1.180.0020.00518.10
8.1.170.0080.00018.46
8.1.160.0000.00718.91
8.1.150.0040.00418.69
8.1.140.0040.00417.38
8.1.130.0030.00317.72
8.1.120.0050.00217.53
8.1.110.0040.00417.50
8.1.100.0030.00517.43
8.1.90.0000.00717.49
8.1.80.0030.00517.46
8.1.70.0030.00317.47
8.1.60.0030.00617.56
8.1.50.0000.00817.50
8.1.40.0030.00517.52
8.1.30.0070.00017.60
8.1.20.0050.00217.70
8.1.10.0030.00617.49
8.1.00.0040.00417.48
8.0.300.0050.00219.98
8.0.290.0000.00817.04
8.0.280.0080.00018.41
8.0.270.0040.00418.03
8.0.260.0030.00316.76
8.0.250.0040.00417.00
8.0.240.0080.00017.04
8.0.230.0000.00816.93
8.0.220.0080.00016.92
8.0.210.0030.00316.90
8.0.200.0030.00316.87
8.0.190.0030.00616.98
8.0.180.0040.00816.82
8.0.170.0000.00716.91
8.0.160.0030.00316.97
8.0.150.0060.00316.89
8.0.140.0050.00216.87
8.0.130.0030.00613.46
8.0.120.0000.00816.77
8.0.110.0040.00416.97
8.0.100.0030.00316.88
8.0.90.0050.00216.72
8.0.80.0070.00716.90
8.0.70.0040.00416.98
8.0.60.0070.00016.87
8.0.50.0040.00416.81
8.0.30.0110.00716.97
8.0.20.0130.00617.40
8.0.10.0080.00017.04
8.0.00.0050.01216.64
7.4.330.0060.00014.61
7.4.320.0030.00316.64
7.4.300.0030.00316.59
7.4.290.0000.00716.43
7.4.280.0030.00316.53
7.4.270.0040.00416.39
7.4.260.0060.00013.36
7.4.250.0050.00316.50
7.4.240.0030.00316.46
7.4.230.0000.00716.74
7.4.220.0090.01016.56
7.4.210.0050.01116.50
7.4.200.0030.00316.36
7.4.190.0070.00016.46
7.4.160.0080.00816.46
7.4.150.0070.01017.40
7.4.140.0080.01317.86
7.4.130.0060.01316.48
7.4.120.0070.01016.57
7.4.110.0030.01316.36
7.4.100.0090.00916.54
7.4.90.0000.01716.48
7.4.80.0070.01119.37
7.4.70.0130.00316.38
7.4.60.0130.00316.53
7.4.50.0080.00016.60
7.4.40.0040.01422.52
7.4.30.0000.01516.61
7.4.10.0160.00314.77
7.4.00.0040.01414.96
7.3.330.0050.00013.19
7.3.320.0030.00313.21
7.3.310.0030.00516.29
7.3.300.0030.00316.36
7.3.290.0070.00716.32
7.3.280.0060.00916.37
7.3.270.0120.00617.40
7.3.260.0130.01118.24
7.3.250.0130.00616.40
7.3.240.0100.00716.31
7.3.230.0130.01016.46
7.3.210.0100.00716.51
7.3.200.0090.01319.39
7.3.190.0060.01616.67
7.3.180.0030.01216.67
7.3.170.0100.00616.50
7.3.160.0090.00616.28
7.3.130.0110.00714.67
7.3.120.0070.00814.81
7.3.110.0130.00615.05
7.3.100.0070.00714.75
7.3.90.0040.01114.83
7.3.80.0000.01214.96
7.3.70.0060.00614.91
7.3.60.0000.01714.51
7.3.50.0070.00714.88
7.3.40.0000.01514.63
7.3.30.0090.00614.82
7.3.20.0030.01416.53
7.3.10.0000.01716.61
7.3.00.0030.00616.47
7.2.330.0200.00316.66
7.2.320.0070.01016.52
7.2.310.0120.00916.81
7.2.300.0030.01316.73
7.2.290.0030.01316.69
7.2.260.0100.01014.72
7.2.250.0040.01515.00
7.2.240.0100.00714.86
7.2.230.0060.00615.21
7.2.220.0030.01414.99
7.2.210.0030.01315.19
7.2.200.0030.00915.02
7.2.190.0090.00014.84
7.2.180.0000.01215.11
7.2.170.0150.00015.13
7.2.160.0030.01515.02
7.2.150.0060.00916.70
7.2.140.0000.01216.62
7.2.130.0070.00716.88
7.2.120.0060.00917.06
7.2.110.0000.01116.88
7.2.100.0000.01116.93
7.2.90.0090.00617.05
7.2.80.0030.01016.91
7.2.70.0060.00616.84
7.2.60.0100.00316.74
7.2.50.0030.01016.84
7.2.40.0080.00416.97
7.2.30.0130.00016.93
7.2.20.0040.00816.96
7.2.10.0030.00616.91
7.2.00.0070.00818.15
7.1.330.0060.00615.61
7.1.320.0030.00615.95
7.1.310.0090.00915.83
7.1.300.0040.01115.64
7.1.290.0100.00315.92
7.1.280.0070.00315.82
7.1.270.0070.01015.77
7.1.260.0070.00715.85
7.1.250.0060.00915.58
7.1.240.0030.00715.57
7.1.230.0030.00715.70
7.1.220.0030.01015.57
7.1.210.0030.01315.93
7.1.200.0060.00615.63
7.1.190.0060.01015.65
7.1.180.0030.01015.73
7.1.170.0040.00815.94
7.1.160.0060.00315.53
7.1.150.0040.00815.70
7.1.140.0000.00915.73
7.1.130.0000.01315.63
7.1.120.0100.00715.57
7.1.110.0030.01415.55
7.1.100.0020.01016.95
7.1.90.0080.00415.85
7.1.80.0040.01115.86
7.1.70.0050.00716.57
7.1.60.0110.00917.45
7.1.50.0060.00816.24
7.1.40.0000.01215.89
7.1.30.0000.01315.61
7.1.20.0030.01315.88
7.1.10.0040.00715.80
7.1.00.0030.03619.04
7.0.330.0000.01115.21
7.0.320.0030.01315.28
7.0.310.0030.00515.43
7.0.300.0030.00815.15
7.0.290.0080.00015.43
7.0.280.0050.00515.55
7.0.270.0060.00915.28
7.0.260.0030.01015.16
7.0.250.0060.00615.45
7.0.240.0060.00615.48
7.0.230.0040.00415.18
7.0.220.0070.00715.17
7.0.210.0100.00315.19
7.0.200.0040.00515.84
7.0.190.0040.01115.28
7.0.180.0070.00715.16
7.0.170.0130.00015.11
7.0.160.0060.00615.30
7.0.150.0150.00015.16
7.0.140.0020.04218.72
7.0.130.0070.00715.55
7.0.120.0040.01115.39
7.0.110.0060.00615.45
7.0.100.0030.01015.16
7.0.90.0070.00715.43
7.0.80.0030.00915.30
7.0.70.0050.02418.47
7.0.60.0060.02318.51
7.0.50.0050.04118.77
7.0.40.0030.02516.77
7.0.30.0060.02116.83
7.0.20.0020.02716.69
7.0.10.0080.02116.79
7.0.00.0060.02416.87
5.6.400.0030.00914.50
5.6.390.0000.01414.12
5.6.380.0100.00614.24
5.6.370.0030.00614.45
5.6.360.0030.01414.26
5.6.350.0040.01114.46
5.6.340.0030.00614.25
5.6.330.0120.00614.57
5.6.320.0030.00614.54
5.6.310.0080.00814.26
5.6.300.0100.00614.11
5.6.290.0000.01414.28
5.6.280.0050.04217.60
5.6.270.0000.00914.47
5.6.260.0070.00714.28
5.6.250.0110.00414.45
5.6.240.0100.00714.53
5.6.230.0040.00714.35
5.6.220.0030.02917.36
5.6.210.0070.02917.40
5.6.200.0050.03317.67
5.6.190.0050.02217.54
5.6.180.0030.04317.68
5.6.170.0080.02217.75
5.6.160.0090.01817.80
5.6.150.0050.02417.68
5.6.140.0030.02417.66
5.6.130.0150.02317.78
5.6.120.0000.02817.59
5.6.110.0030.02817.66
5.6.100.0060.02017.70
5.6.90.0040.02417.56
5.6.80.0050.03817.36
5.6.70.0050.02117.24
5.6.60.0030.01817.41
5.6.50.0050.02517.38
5.6.40.0020.02517.42
5.6.30.0050.02317.39
5.6.20.0060.02117.34
5.6.10.0170.01217.35
5.6.00.0050.04417.23
5.5.380.0080.00814.52
5.5.370.0040.00813.99
5.5.360.0070.03617.32
5.5.350.0030.02817.24
5.5.340.0070.03717.49
5.5.330.0040.02417.53
5.5.320.0010.02617.40
5.5.310.0070.02017.54
5.5.300.0020.03717.68
5.5.290.0030.03317.50
5.5.280.0030.02117.49
5.5.270.0060.02417.61
5.5.260.0030.02417.51
5.5.250.0020.02617.47
5.5.240.0020.02917.30
5.5.230.0020.02717.17
5.5.220.0060.01817.25
5.5.210.0020.02217.32
5.5.200.0020.03217.15
5.5.190.0060.02317.25
5.5.180.0020.02517.25
5.5.170.0030.01314.20
5.5.160.0050.04317.02
5.5.150.0070.04317.33
5.5.140.0070.03217.18
5.5.130.0080.04317.10
5.5.120.0020.04717.27
5.5.110.0070.04217.21
5.5.100.0050.04617.12
5.5.90.0050.03417.11
5.5.80.0070.03717.14
5.5.70.0050.04517.07
5.5.60.0080.03717.08
5.5.50.0060.02317.05
5.5.40.0060.02817.15
5.5.30.0070.03817.22
5.5.20.0050.03317.04
5.5.10.0050.04517.16
5.5.00.0050.04817.13
5.4.450.0020.02415.02
5.4.440.0040.02215.14
5.4.430.0000.02314.99
5.4.420.0020.02515.12
5.4.410.0020.02315.07
5.4.400.0020.02015.13
5.4.390.0050.01915.05
5.4.380.0030.02315.00
5.4.370.0010.02215.04
5.4.360.0050.02114.94
5.4.350.0030.02014.94
5.4.340.0050.03815.02
5.4.330.0000.01110.93
5.4.320.0080.03615.11
5.4.310.0060.04015.09
5.4.300.0000.04114.92
5.4.290.0030.04114.97
5.4.280.0060.02815.02
5.4.270.0070.03915.02
5.4.260.0020.04414.95
5.4.250.0070.03314.98
5.4.240.0060.02414.87
5.4.230.0040.02215.07
5.4.220.0080.03714.91
5.4.210.0080.02315.08
5.4.200.0030.04415.00
5.4.190.0050.03715.04
5.4.180.0050.03714.86
5.4.170.0070.04014.72
5.4.160.0050.04014.85
5.4.150.0020.04014.99
5.4.140.0030.04213.74
5.4.130.0020.03913.77
5.4.120.0050.04013.65
5.4.110.0060.04113.69
5.4.100.0000.03713.78
5.4.90.0030.03313.75
5.4.80.0020.03213.54
5.4.70.0000.02513.69
5.4.60.0070.03213.70
5.4.50.0020.03513.61
5.4.40.0030.04013.53
5.4.30.0030.03613.68
5.4.20.0040.03013.64
5.4.10.0030.02813.62
5.4.00.0050.03513.39
5.3.290.0050.02812.65
5.3.280.0030.04112.54
5.3.270.0050.03012.62
5.3.260.0030.03112.51
5.3.250.0050.04112.49
5.3.240.0050.03512.45
5.3.230.0020.03112.43
5.3.220.0040.04112.43
5.3.210.0030.04012.47
5.3.200.0050.04012.45
5.3.190.0020.04412.43
5.3.180.0070.02412.46
5.3.170.0090.03512.50
5.3.160.0050.02512.55
5.3.150.0050.04012.54
5.3.140.0060.03312.47
5.3.130.0000.03012.43
5.3.120.0030.04312.51
5.3.110.0020.04212.42
5.3.100.0050.03712.31
5.3.90.0050.02812.18
5.3.80.0020.02212.15
5.3.70.0030.04212.11
5.3.60.0040.02012.19
5.3.50.0030.02012.14
5.3.40.0000.03912.12
5.3.30.0070.03712.14
5.3.20.0030.03612.04
5.3.10.0020.04011.95
5.3.00.0080.01811.86
5.2.170.0030.06012.40
5.2.160.0030.04312.40
5.2.150.0030.04312.40
5.2.140.0000.05012.40
5.2.130.0030.04712.40
5.2.120.0030.06312.40
5.2.110.0000.04712.40
5.2.100.0000.06012.40
5.2.90.0070.06012.40
5.2.80.0030.06012.40
5.2.70.0000.05012.40
5.2.60.0070.05012.40
5.2.50.0000.06712.40
5.2.40.0000.05312.40
5.2.30.0070.06012.40
5.2.20.0000.05712.40
5.2.10.0070.05312.40
5.2.00.0030.06012.40
5.1.60.0070.05012.40
5.1.50.0030.05312.40
5.1.40.0030.04312.40
5.1.30.0030.04012.40
5.1.20.0030.05312.40
5.1.10.0030.05712.40
5.1.00.0000.04012.40
5.0.50.0070.02712.40
5.0.40.0000.03012.40
5.0.30.0030.06012.40
5.0.20.0000.04312.40
5.0.10.0030.04012.40
5.0.00.0030.05012.40
4.4.90.0000.03712.40
4.4.80.0000.03712.40
4.4.70.0000.04012.40
4.4.60.0000.03712.40
4.4.50.0000.02712.40
4.4.40.0030.04312.40
4.4.30.0070.01312.40
4.4.20.0000.03712.40
4.4.10.0000.03312.40
4.4.00.0000.05012.40
4.3.110.0000.03712.40
4.3.100.0070.02712.40
4.3.90.0070.03012.40
4.3.80.0000.05712.40
4.3.70.0030.03012.40
4.3.60.0000.03312.40
4.3.50.0030.03312.40
4.3.40.0000.04012.40
4.3.30.0000.02312.40
4.3.20.0070.03312.40
4.3.10.0000.03712.40
4.3.00.0000.03312.40

preferences:
78.49 ms | 400 KiB | 5 Q