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.5.30.0090.00921.63
8.5.20.0090.00819.59
8.5.10.0110.00618.56
8.5.00.0100.01120.07
8.4.180.0130.01019.45
8.4.170.0120.00923.59
8.4.160.0110.01023.82
8.4.150.0070.00516.81
8.4.140.0160.00617.52
8.4.130.0060.00317.94
8.4.120.0100.01120.34
8.4.110.0100.01018.42
8.4.100.0150.00717.72
8.4.90.0070.01220.62
8.4.80.0110.01020.57
8.4.70.0100.01018.86
8.4.60.0120.00518.81
8.4.50.0100.01020.54
8.4.40.0130.00719.57
8.4.30.0090.00622.02
8.4.20.0130.01018.83
8.4.10.0130.00723.89
8.3.300.0110.01020.79
8.3.290.0130.00720.60
8.3.280.0110.00818.29
8.3.270.0130.00616.47
8.3.260.0060.00316.64
8.3.250.0100.00818.54
8.3.240.0110.00816.57
8.3.230.0130.00716.71
8.3.220.0070.01019.13
8.3.210.0040.00418.22
8.3.200.0030.00516.61
8.3.190.0100.00519.01
8.3.180.0110.00918.57
8.3.170.0180.00018.99
8.3.160.0130.00618.29
8.3.150.0110.00718.98
8.3.140.0040.01120.91
8.3.130.0040.00416.48
8.3.120.0060.01320.43
8.3.110.0060.00920.94
8.3.100.0060.00324.06
8.3.90.0090.00926.77
8.3.80.0030.00616.63
8.3.70.0130.00618.53
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.300.0120.00718.10
8.2.290.0110.00820.53
8.2.280.0110.00820.20
8.2.270.0110.00716.53
8.2.260.0090.00617.01
8.2.250.0080.00316.54
8.2.240.0080.00817.00
8.2.230.0000.00922.58
8.2.220.0080.00037.54
8.2.210.0000.00726.77
8.2.200.0060.00316.50
8.2.190.0110.01116.58
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.340.0100.01119.91
8.1.330.0100.00916.63
8.1.320.0090.00918.11
8.1.310.0080.00018.30
8.1.300.0050.00319.43
8.1.290.0030.00630.84
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:
56.72 ms | 1260 KiB | 5 Q