3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target = array(1,2,3,4,5,6,7,8,9,10,11,12,13); $target = array_chunk($target, 3); //Split the array into chunks of 3. $result = array_map(function ($el) { return implode("</td><td>", $el); //Implode the inner arrays with table cells }, $target); $result = implode("</td></tr><tr><td>", $result); //Implode the outer arrays with table rows. echo "<table><tr><td>"; echo $result; echo "</td></tr></table>";

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.4.120.0120.00722.25
8.4.110.0130.00722.42
8.4.100.0170.00417.58
8.4.90.0170.00320.43
8.4.80.0030.00518.78
8.4.70.0050.00418.98
8.4.60.0120.01018.79
8.4.50.0070.00318.51
8.4.40.0120.00919.31
8.4.30.0000.00917.47
8.4.20.0030.01717.69
8.4.10.0040.00417.42
8.3.250.0040.00418.85
8.3.240.0110.00816.61
8.3.230.0120.00816.56
8.3.220.0110.00818.71
8.3.210.0100.00816.62
8.3.200.0100.00916.76
8.3.190.0060.00418.78
8.3.180.0070.01217.05
8.3.170.0110.00720.78
8.3.160.0080.00816.80
8.3.150.0160.00317.23
8.3.140.0030.00716.41
8.3.130.0140.00718.48
8.3.120.0030.00518.88
8.3.110.0080.00020.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0110.00018.55
8.3.70.0120.00616.63
8.3.60.0070.00718.16
8.3.50.0090.00922.05
8.3.40.0110.00718.89
8.3.30.0120.00318.72
8.3.20.0040.00418.51
8.3.10.0000.00820.36
8.3.00.0000.00723.48
8.2.290.0110.00618.22
8.2.280.0110.00718.25
8.2.270.0100.01017.29
8.2.260.0080.00018.38
8.2.250.0070.00718.22
8.2.240.0150.00018.84
8.2.230.0000.00822.58
8.2.220.0090.00037.54
8.2.210.0030.00526.77
8.2.200.0030.00616.50
8.2.190.0090.00616.58
8.2.180.0110.00425.92
8.2.170.0140.00018.95
8.2.160.0150.00022.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.36
8.2.110.0150.00917.50
8.2.100.0050.01117.53
8.2.90.0050.00318.22
8.2.80.0040.00417.97
8.2.70.0050.00317.80
8.2.60.0040.00418.03
8.2.50.0000.00918.10
8.2.40.0050.00318.16
8.2.30.0000.01018.12
8.2.20.0040.00417.64
8.2.10.0030.00517.66
8.2.00.0030.00517.83
8.1.330.0120.00816.42
8.1.320.0090.01116.16
8.1.310.0120.00616.19
8.1.300.0050.00318.45
8.1.290.0030.00730.84
8.1.280.0140.00025.92
8.1.270.0040.00424.66
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0200.00023.84
8.1.230.0090.00323.93
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0090.00017.23
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00418.66
8.1.160.0070.00018.86
8.1.150.0070.00018.63
8.1.140.0000.00717.36
8.1.130.0000.00717.89
8.1.120.0000.00717.36
8.1.110.0000.00717.34
8.1.100.0050.00217.29
8.1.90.0000.00817.43
8.1.80.0050.00217.50
8.1.70.0030.00317.41
8.1.60.0040.00417.57
8.1.50.0050.00317.38
8.1.40.0040.00417.45
8.1.30.0030.00617.58
8.1.20.0030.00517.53
8.1.10.0030.00617.56
8.1.00.0040.00417.34
8.0.300.0000.00819.73
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0040.00417.27
8.0.260.0080.00016.69
8.0.250.0080.00016.95
8.0.240.0060.00316.92
8.0.230.0030.00316.86
8.0.220.0050.00216.80
8.0.210.0070.00016.79
8.0.200.0070.00016.82
8.0.190.0040.00416.96
8.0.180.0080.00016.91
8.0.170.0040.00416.94
8.0.160.0040.00416.98
8.0.150.0060.00316.87
8.0.140.0040.00416.93
8.0.130.0060.00013.23
8.0.120.0000.00816.86
8.0.110.0000.00816.71
8.0.100.0060.00316.93
8.0.90.0050.00316.86
8.0.80.0080.00816.78
8.0.70.0040.00417.00
8.0.60.0040.00416.87
8.0.50.0040.00416.86
8.0.30.0080.01017.06
8.0.20.0100.01117.40
8.0.10.0020.00517.07
8.0.00.0130.00516.70
7.4.330.0060.00014.79
7.4.320.0000.00816.61
7.4.300.0030.00316.51
7.4.290.0070.00016.54
7.4.280.0080.00016.58
7.4.270.0030.00316.65
7.4.260.0000.00716.58
7.4.250.0000.00716.55
7.4.240.0030.00516.52
7.4.230.0030.00316.57
7.4.220.0060.01216.45
7.4.210.0110.00616.63
7.4.200.0070.00016.30
7.4.190.0030.00316.56
7.4.160.0030.01416.57
7.4.150.0140.00617.40
7.4.140.0090.01117.86
7.4.130.0090.00816.50
7.4.120.0120.00816.46
7.4.110.0100.00716.27
7.4.100.0150.00316.52
7.4.90.0070.01116.40
7.4.80.0070.01019.04
7.4.70.0110.00516.47
7.4.60.0040.01416.37
7.4.50.0040.00416.14
7.4.40.0060.00922.27
7.4.30.0160.00316.44
7.4.00.0130.00314.97
7.3.330.0000.00513.28
7.3.320.0060.00013.23
7.3.310.0050.00216.28
7.3.300.0030.00316.15
7.3.290.0080.00516.29
7.3.280.0070.00816.30
7.3.270.0080.00817.40
7.3.260.0100.01018.24
7.3.250.0170.00316.28
7.3.240.0100.01316.60
7.3.230.0100.00716.42
7.3.210.0100.00716.58
7.3.200.0060.01219.39
7.3.190.0100.00716.23
7.3.180.0170.00416.39
7.3.170.0120.00416.29
7.3.160.0140.00316.36
7.3.120.0030.01214.88
7.2.330.0070.01016.52
7.2.320.0100.00716.40
7.2.310.0130.01016.82
7.2.300.0070.01116.69
7.2.290.0110.00516.53
7.2.110.0300.01316.38
7.2.80.0180.00016.56
7.2.60.0060.00616.71
7.1.200.0060.00915.91
7.1.70.0030.00316.92
7.1.60.0090.01519.40
7.1.50.0000.02116.64
7.1.00.0030.03322.30
7.0.200.0000.00716.95
7.0.140.0070.07021.97
7.0.60.0030.04020.16
7.0.50.0070.08018.08
7.0.40.0100.08017.98
7.0.30.0070.08018.00
7.0.20.0030.07317.96
7.0.10.0130.04717.96
7.0.00.0030.07718.10
5.6.210.0100.07720.75
5.6.200.0100.08318.19
5.6.190.0100.07718.27
5.6.180.0030.05018.22
5.6.170.0130.07318.16
5.6.160.0100.08018.23
5.6.150.0030.05018.20
5.6.140.0070.08018.11
5.6.130.0070.06018.21
5.6.120.0070.08018.21
5.6.110.0030.06018.26
5.6.100.0070.06018.23
5.6.90.0130.08018.14
5.6.80.0030.07717.53
5.6.70.0030.07717.55
5.6.60.0070.06317.56
5.6.50.0070.03717.61
5.6.40.0030.06017.50
5.6.30.0130.03317.51
5.6.20.0000.04317.54
5.6.10.0030.04017.53
5.6.00.0030.07317.58
5.5.350.0330.07020.44
5.5.340.0100.07317.98
5.5.330.0100.08017.96
5.5.320.0000.04317.95
5.5.310.0070.06017.98
5.5.300.0030.05317.96
5.5.290.0000.06017.97
5.5.280.0070.06718.07
5.5.270.0070.08717.94
5.5.260.0070.04318.02
5.5.250.0170.06717.88
5.5.240.0170.07017.40
5.5.230.0070.07317.47
5.5.220.0070.07317.30
5.5.210.0100.05717.36
5.5.200.0030.08717.34
5.5.190.0000.06317.34
5.5.180.0000.05717.40
5.5.160.0070.03717.33
5.5.150.0130.07317.29
5.5.140.0100.06317.37
5.5.130.0070.06317.36
5.5.120.0000.04317.34
5.5.110.0070.04717.29
5.5.100.0100.07017.23
5.5.90.0100.06717.35
5.5.80.0170.07017.34
5.5.70.0070.04317.30
5.5.60.0030.08017.32
5.5.50.0100.07017.18
5.5.40.0100.07717.18
5.5.30.0070.06017.30
5.5.20.0070.07017.21
5.5.10.0070.06717.27
5.5.00.0070.04017.31
5.4.450.0170.07719.45
5.4.440.0070.05319.38
5.4.430.0070.06319.21
5.4.420.0070.07319.46
5.4.410.0000.05319.29
5.4.400.0030.07019.05
5.4.390.0100.07319.05
5.4.380.0030.07018.97
5.4.370.0030.04019.27
5.4.360.0100.03319.10
5.4.350.0070.04719.02
5.4.340.0070.03719.09
5.4.320.0000.05718.89
5.4.310.0070.06319.27
5.4.300.0070.05719.13
5.4.290.0030.08019.27
5.4.280.0030.05719.01
5.4.270.0070.04019.14
5.4.260.0030.04019.01
5.4.250.0070.08018.90
5.4.240.0070.07318.97
5.4.230.0100.04318.95
5.4.220.0100.04719.09
5.4.210.0100.06719.04
5.4.200.0100.03319.01
5.4.190.0070.07319.02
5.4.180.0070.07019.00
5.4.170.0030.05019.00
5.4.160.0070.05719.12
5.4.150.0030.04019.25
5.4.140.0130.02716.41
5.4.130.0030.07716.43
5.4.120.0100.06316.39
5.4.110.0100.05316.35
5.4.100.0000.04016.44
5.4.90.0100.06716.46
5.4.80.0030.06316.46
5.4.70.0030.07316.39
5.4.60.0030.04716.30
5.4.50.0170.06016.43
5.4.40.0030.07016.51
5.4.30.0100.06016.45
5.4.20.0000.04716.20
5.4.10.0000.04716.38
5.4.00.0070.06715.88
5.3.290.0170.04014.66
5.3.280.0170.06714.61
5.3.270.0100.07714.71
5.3.260.0100.07314.61
5.3.250.0070.03714.82
5.3.240.0000.04014.60
5.3.230.0170.06314.81
5.3.220.0100.05714.61
5.3.210.0170.06014.53
5.3.200.0000.04314.60
5.3.190.0030.06314.61
5.3.180.0030.07714.56
5.3.170.0030.08014.59
5.3.160.0070.04014.55
5.3.150.0100.06314.52
5.3.140.0070.07314.63
5.3.130.0070.06314.55
5.3.120.0170.02714.58
5.3.110.0070.04714.60
5.3.100.0070.07014.09
5.3.90.0070.06713.97
5.3.80.0100.07314.04
5.3.70.0030.06714.22
5.3.60.0100.06714.02
5.3.50.0100.07313.94
5.3.40.0100.05713.93
5.3.30.0000.05313.98
5.3.20.0000.04713.74
5.3.10.0070.03313.54
5.3.00.0030.07713.65
5.2.170.0100.05011.14
5.2.160.0130.05711.09
5.2.150.0100.04711.10
5.2.140.0000.03711.12
5.2.130.0000.06311.08
5.2.120.0030.06011.09
5.2.110.0030.04311.08
5.2.100.0070.06011.04
5.2.90.0030.06311.07
5.2.80.0130.04310.87
5.2.70.0030.04311.09
5.2.60.0070.05011.06
5.2.50.0030.06710.97
5.2.40.0070.02710.97
5.2.30.0030.04710.96
5.2.20.0100.05711.11
5.2.10.0030.02710.84
5.2.00.0070.05710.72
5.1.60.0100.04010.05
5.1.50.0000.04710.07
5.1.40.0130.0479.91
5.1.30.0000.02710.29
5.1.20.0000.03010.25
5.1.10.0000.03010.07
5.1.00.0070.04710.10
5.0.50.0030.0238.46
5.0.40.0000.0208.35
5.0.30.0000.0338.26
5.0.20.0000.0278.13
5.0.10.0000.0278.21
5.0.00.0000.0708.12
4.4.90.0000.0377.93
4.4.80.0030.0207.93
4.4.70.0000.0337.93
4.4.60.0070.0137.93
4.4.50.0000.0177.93
4.4.40.0070.0507.93
4.4.30.0000.0277.93
4.4.20.0000.0377.93
4.4.10.0000.0207.93
4.4.00.0000.0237.93
4.3.110.0030.0177.93
4.3.100.0130.0207.93
4.3.90.0000.0207.93
4.3.80.0000.0607.93
4.3.70.0070.0307.93
4.3.60.0000.0277.93
4.3.50.0070.0307.93
4.3.40.0000.0337.93
4.3.30.0000.0407.93
4.3.20.0000.0277.93
4.3.10.0000.0237.93
4.3.00.0000.0207.93

preferences:
31.41 ms | 403 KiB | 5 Q