3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id= array("1","2","3","4","5","6","7","8","9","10","11","12"); $maxcols = 8; $i = 0;$j=0;$t=0;$s=0; $maxid = count($id); echo "<table id='table1'>\n<tr>"; foreach ($id as $k => $v) { if($t == 0) { while ($t <= $maxcols-1) { if($s < $maxid) { $s++;$t++; echo "<td class='mark'>id$s</td>"; } else { echo "<td class='mark'></td>";$t++;$s++; } } echo "</tr><tr>"; } else { } echo "<td id='0'><div id=$v class='drag t1'>{$v}</div></td>"; $i++; if ($i == $maxcols) { echo "</tr>\n<tr>"; if($j == 0) { while ($j <= $maxcols-1) { if($s < $maxid) { $s++;$j++; echo "<td class='mark'>id$s</td>"; } else { echo "<td class='mark'></td>";$j++;$s++; } } echo "</tr>\n<tr>"; } $i=0; } } echo "</tr>\n</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.3.60.0110.00418.43
8.3.50.0140.00521.14
8.3.40.0000.01518.70
8.3.30.0140.00319.09
8.3.20.0000.00720.29
8.3.10.0040.00421.84
8.3.00.0070.00020.66
8.2.180.0190.00016.50
8.2.170.0040.01422.96
8.2.160.0100.00318.96
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00719.23
8.2.110.0060.00322.29
8.2.100.0080.00319.28
8.2.90.0000.00819.04
8.2.80.0060.00318.05
8.2.70.0080.00317.36
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0080.00018.16
8.2.30.0070.00018.02
8.2.20.0000.00717.53
8.2.10.0040.00417.80
8.2.00.0040.00817.80
8.1.280.0110.00425.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.89
8.1.230.0070.00419.15
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.40
8.1.180.0000.00820.43
8.1.170.0080.00018.65
8.1.160.0050.00222.07
8.1.150.0000.00718.64
8.1.140.0080.00017.50
8.1.130.0000.00717.89
8.1.120.0030.00517.43
8.1.110.0040.00417.34
8.1.100.0000.00817.34
8.1.90.0070.00017.45
8.1.80.0070.00017.46
8.1.70.0050.00217.39
8.1.60.0040.00417.57
8.1.50.0000.00717.50
8.1.40.0000.00717.54
8.1.30.0050.00317.61
8.1.20.0040.00417.64
8.1.10.0000.00817.52
8.1.00.0000.00817.45
8.0.300.0070.00018.77
8.0.290.0040.00417.16
8.0.280.0040.00418.45
8.0.270.0030.00317.25
8.0.260.0050.00316.82
8.0.250.0040.00416.84
8.0.240.0040.00416.86
8.0.230.0030.00316.91
8.0.220.0030.00316.78
8.0.210.0070.00016.90
8.0.200.0030.00316.82
8.0.190.0040.00417.01
8.0.180.0040.00416.97
8.0.170.0030.00616.92
8.0.160.0000.00716.77
8.0.150.0040.00316.88
8.0.140.0000.00716.90
8.0.130.0050.00013.39
8.0.120.0040.00416.82
8.0.110.0040.00416.83
8.0.100.0040.00416.82
8.0.90.0040.00416.97
8.0.80.0130.00616.88
8.0.70.0040.00416.77
8.0.60.0040.00416.89
8.0.50.0050.00316.79
8.0.30.0140.01417.18
8.0.20.0090.00917.40
8.0.10.0000.00817.02
8.0.00.0120.00816.73
7.4.330.0030.00315.00
7.4.320.0000.00716.53
7.4.300.0000.00616.63
7.4.290.0030.00316.46
7.4.280.0070.00016.62
7.4.270.0030.00316.61
7.4.260.0110.00016.57
7.4.250.0040.00416.59
7.4.240.0040.00416.55
7.4.230.0040.00416.59
7.4.220.0030.01416.59
7.4.210.0040.01216.63
7.4.200.0000.00716.69
7.4.190.0000.00816.56
7.4.160.0170.00716.48
7.4.150.0210.00317.40
7.4.140.0160.01817.86
7.4.130.0150.00316.46
7.4.120.0160.00216.61
7.4.110.0080.01116.66
7.4.100.0130.00616.57
7.4.90.0140.00316.57
7.4.80.0130.00319.39
7.4.70.0190.00716.72
7.4.60.0100.00716.57
7.4.50.0050.00316.53
7.4.40.0030.00622.77
7.4.30.0100.01016.45
7.4.00.0030.01414.86
7.3.330.0030.00313.15
7.3.320.0030.00313.19
7.3.310.0000.00716.39
7.3.300.0070.00016.25
7.3.290.0120.00316.38
7.3.280.0100.00516.33
7.3.270.0030.01417.40
7.3.260.0030.01316.55
7.3.250.0100.01116.44
7.3.240.0130.00816.45
7.3.230.0120.00616.39
7.3.210.0110.00816.60
7.3.200.0060.01016.50
7.3.190.0060.01616.23
7.3.180.0100.00616.43
7.3.170.0110.01116.32
7.3.160.0060.01616.35
7.3.120.0040.00714.65
7.3.110.0030.00714.91
7.3.100.0060.00314.82
7.3.90.0040.00815.06
7.3.80.0040.01115.01
7.3.70.0040.00814.64
7.3.60.0000.01414.78
7.3.50.0000.01015.01
7.3.40.0100.00314.77
7.3.30.0000.01514.61
7.3.20.0030.01016.63
7.3.10.0040.01116.72
7.3.00.0080.00416.71
7.2.330.0110.00716.86
7.2.320.0090.00916.80
7.2.310.0090.00616.71
7.2.300.0250.03116.70
7.2.290.0120.01216.66
7.2.240.0060.01014.62
7.2.230.0030.00915.30
7.2.220.0110.00714.95
7.2.210.0040.00715.15
7.2.200.0130.00015.00
7.2.190.0080.00414.86
7.2.180.0050.00515.23
7.2.170.0030.01015.10
7.2.160.0080.00815.06
7.2.150.0070.00316.82
7.2.140.0060.00617.11
7.2.130.0000.01117.13
7.2.120.0110.00416.72
7.2.110.0030.01016.89
7.2.100.0060.00616.91
7.2.90.0100.00316.88
7.2.80.0040.01417.09
7.2.70.0060.00616.97
7.2.60.0070.00916.89
7.2.50.0080.00417.06
7.2.40.0000.00916.96
7.2.30.0030.01616.84
7.2.20.0040.01116.61
7.2.10.0070.01016.77
7.2.00.0020.01317.91
7.1.330.0090.00315.77
7.1.320.0040.01415.76
7.1.310.0030.00915.78
7.1.300.0030.01015.65
7.1.290.0040.00815.91
7.1.280.0100.00315.73
7.1.270.0060.00315.79
7.1.260.0030.00716.02
7.1.250.0060.00815.75
7.1.200.0110.00315.97
7.1.100.3590.00718.14
7.1.70.0100.00317.15
7.1.60.0070.01519.82
7.1.50.0130.01016.83
7.1.00.0070.05322.54
7.0.200.0030.00316.85
7.0.140.0030.07721.97
7.0.60.0000.07019.87
7.0.50.0170.06717.91
7.0.40.0100.07320.25
7.0.30.0370.05720.00
7.0.20.0200.05720.04
7.0.10.0300.07720.19
7.0.00.0130.04320.20
5.6.280.0070.07021.13
5.6.210.0100.08020.46
5.6.200.0030.09018.19
5.6.190.0100.09020.32
5.6.180.4070.04020.41
5.6.170.0170.04320.42
5.6.160.0100.05320.49
5.6.150.0100.08018.22
5.6.140.0130.03318.14
5.6.130.0130.04318.22
5.6.120.0170.03721.13
5.6.110.0100.03720.98
5.6.100.0170.07321.03
5.6.90.0100.08720.97
5.6.80.0130.07020.39
5.6.70.0230.06720.48
5.5.350.0100.03720.47
5.5.340.0100.07717.88
5.5.330.0100.08320.36
5.5.320.0330.04320.18
5.5.310.0270.04020.23
5.5.300.0000.06017.92
5.5.290.0000.06017.97
5.5.280.0130.06320.74
5.5.270.0130.07720.68
5.5.260.0030.04020.95
5.5.250.0030.04020.72
5.5.240.0070.06320.20
5.4.450.0070.06319.27
5.4.440.0730.06019.49
5.4.430.0100.05019.54
5.4.420.0770.05019.62
5.4.410.0830.06719.36
5.4.400.0270.06018.61
5.4.390.0300.07718.64
5.4.380.0300.07018.70
5.4.370.0170.05018.72
5.4.360.0200.04718.67
5.4.350.0330.03718.50
5.4.340.0130.05318.61
5.4.320.0060.03612.47
5.4.310.0080.03912.46
5.4.300.0130.03812.46
5.4.290.0070.03712.46
5.4.280.0050.04512.36
5.4.270.0060.04212.36
5.4.260.0070.05718.89
5.4.250.0130.06318.98
5.4.240.0070.08318.74
5.4.230.0200.06718.74
5.4.220.0130.07318.92
5.4.210.0100.07018.89
5.4.200.0170.06318.85
5.4.190.0030.07718.79
5.4.180.0130.05018.69
5.4.170.0130.05018.72
5.4.160.0100.05718.86
5.4.150.0070.07718.98
5.4.140.0070.06016.25
5.4.130.0100.06016.25
5.4.120.0070.07016.45
5.4.110.0130.05316.21
5.4.100.0100.05716.25
5.4.90.0170.05316.37
5.4.80.0100.04716.48
5.4.70.0100.06316.35
5.4.60.0170.05316.41
5.4.50.0170.05316.37
5.4.40.0130.06016.43
5.4.30.0130.05716.41
5.4.20.0100.05316.46
5.4.10.0130.05716.39
5.4.00.0030.05315.85
5.3.290.0050.04512.80
5.3.280.0170.06014.70
5.3.270.0130.07014.62
5.3.260.0100.07714.47
5.3.250.0000.06714.32
5.3.240.0130.04314.62
5.3.230.0100.05314.46
5.3.220.0030.08014.73
5.3.210.0030.07714.36
5.3.200.0170.05314.50
5.3.190.0070.05314.45
5.3.180.0170.06314.56
5.3.170.0100.07014.63
5.3.160.0100.05314.43
5.3.150.0070.06014.57
5.3.140.0070.05014.27
5.3.130.0070.07314.42
5.3.120.0130.05014.45
5.3.110.0130.05014.33
5.3.100.0130.05014.07
5.3.90.0230.06013.95
5.3.80.0000.06313.80
5.3.70.0100.07013.91
5.3.60.0130.05013.88
5.3.50.0070.06313.95
5.3.40.0170.06013.90
5.3.30.0130.07013.77
5.3.20.0100.04713.54
5.3.10.0000.07313.66
5.3.00.0200.06013.68
5.2.170.0100.05011.18
5.2.160.0130.03711.00
5.2.150.0230.04311.07
5.2.140.0100.04011.31
5.2.130.0070.05311.02
5.2.120.0000.04710.88
5.2.110.0070.04311.13
5.2.100.0100.05311.22
5.2.90.0130.03711.13
5.2.80.0130.05311.04
5.2.70.0030.06311.12
5.2.60.0170.03311.05
5.2.50.0070.06011.04
5.2.40.0100.03311.02
5.2.30.0070.04311.01
5.2.20.0130.04310.97
5.2.10.0030.04310.70
5.2.00.0100.05010.72
5.1.60.0070.04010.08
5.1.50.0100.0309.99
5.1.40.0130.02710.04
5.1.30.0030.05710.33
5.1.20.0170.03710.44
5.1.10.0070.0479.92
5.1.00.0070.05010.24
5.0.50.0030.0408.54
5.0.40.0100.0308.58
5.0.30.0100.0578.25
5.0.20.0070.0278.40
5.0.10.0000.0338.11
5.0.00.0030.0408.18
4.4.90.0030.0277.30
4.4.80.0000.0277.30
4.4.70.0100.0207.30
4.4.60.0000.0337.30
4.4.50.0030.0277.30
4.4.40.0030.0407.30
4.4.30.0000.0307.30
4.4.20.0000.0277.30
4.4.10.0000.0307.30
4.4.00.0030.0407.30
4.3.110.0000.0277.30
4.3.100.0030.0307.30
4.3.90.0000.0277.30
4.3.80.0030.0377.30
4.3.70.0000.0237.30
4.3.60.0000.0277.30
4.3.50.0000.0337.30
4.3.40.0030.0437.30
4.3.30.0100.0237.30
4.3.20.0000.0307.30
4.3.10.0070.0177.30
4.3.00.0130.0207.27

preferences:
56.52 ms | 401 KiB | 5 Q