3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sub = ['a', 'b', 'c']; echo "<table class='table'><thead><tr>"; for($j = 0; $j < count($sub); $j++){ echo "<th scope='col'>" . $sub[$j] . "</th>"; } echo "</tr></thead></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.0130.00918.14
8.3.50.0060.00920.34
8.3.40.0090.00618.88
8.3.30.0090.00618.73
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0050.00226.16
8.2.180.0120.00625.92
8.2.170.0070.00718.96
8.2.160.0130.00322.96
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00620.87
8.2.110.0030.00621.12
8.2.100.0040.00717.97
8.2.90.0040.00418.16
8.2.80.0050.00319.13
8.2.70.0030.00617.63
8.2.60.0050.00518.05
8.2.50.0000.00817.98
8.2.40.0030.00718.24
8.2.30.0040.00418.11
8.2.20.0000.00820.43
8.2.10.0000.00718.04
8.2.00.0070.00019.11
8.1.280.0080.01525.92
8.1.270.0060.00323.99
8.1.260.0070.00726.35
8.1.250.0080.00028.09
8.1.240.0050.00522.20
8.1.230.0090.00620.79
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.34
8.1.190.0060.00317.23
8.1.180.0050.00318.89
8.1.170.0000.00817.62
8.1.160.0040.00418.87
8.1.150.0050.00218.59
8.1.140.0040.00417.50
8.1.130.0000.00718.83
8.1.120.0050.00317.46
8.1.110.0030.00617.41
8.1.100.0070.00517.35
8.1.90.0060.00617.44
8.1.80.0110.00017.34
8.1.70.0070.00917.40
8.1.60.0100.00817.56
8.1.50.0090.00817.45
8.1.40.0100.00617.44
8.1.30.0080.00617.57
8.1.20.0100.00517.61
8.1.10.0110.00317.54
8.1.00.0160.00117.38
8.0.300.0090.00020.15
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0000.00716.80
8.0.260.0000.00818.41
8.0.250.0030.00316.81
8.0.240.0050.00616.88
8.0.230.0060.00516.88
8.0.220.0050.00716.80
8.0.210.0060.00516.87
8.0.200.0080.00716.90
8.0.190.0120.00316.88
8.0.180.0040.01016.82
8.0.170.0120.00216.92
8.0.160.0070.01016.85
8.0.150.0070.00516.75
8.0.140.0120.00316.79
8.0.130.0120.00416.67
8.0.120.0110.00416.84
8.0.110.0070.00716.83
8.0.100.0080.00616.83
8.0.90.0080.00716.82
8.0.80.0120.00316.77
8.0.70.0120.00416.79
8.0.60.0150.00116.78
8.0.50.0090.00616.83
8.0.30.0090.00716.81
8.0.20.0120.00216.90
8.0.10.0110.00516.98
7.4.330.0020.00215.55
7.4.320.0050.00616.58
7.4.300.0070.00516.49
7.4.290.0080.00416.39
7.4.280.0140.00216.58
7.4.270.0140.00216.48
7.4.260.0100.00416.49
7.4.250.0070.00816.45
7.4.240.0080.00616.44
7.4.230.0080.00416.48
7.4.220.0040.00816.40
7.4.210.0080.00516.25
7.4.200.0050.00716.45
7.4.190.0120.00016.29
7.4.180.0080.00516.59
7.4.160.0070.00716.36
7.4.150.0120.00316.53
7.4.140.0080.00516.30
7.4.130.0070.00716.29
7.4.120.0070.00516.46
7.4.110.0060.00616.27
7.4.100.0030.00916.24
7.4.90.0030.00916.38
7.4.80.0050.00516.34
7.4.70.0010.00916.43
7.4.60.0040.00516.29
7.4.50.0050.00516.35
7.4.40.0050.00516.11
7.4.30.0040.00516.49
7.4.20.0070.00416.29
7.4.10.0080.00216.39
7.4.00.0010.00816.40

preferences:
42.89 ms | 400 KiB | 5 Q