3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [['a', 'b']]; echo "<!DOCTYPE html> <html> <head> <style> table { width: 100%; max-width: 100%; margin-bottom: 20px; } th, td { white-space: nowrap } thead { text-align: left } </style> </head> <body> <table> <thead> <tr> <?php foreach (array_keys(reset($array)) as $heading): ?> <th><?php echo ucwords(strtr($heading, ['_' => ' '])); ?></th> <?php endforeach; ?> </tr> </thead> <tbody> <?php foreach ($array as $sub_array): ?> <tr> <?php foreach ($sub_array as $value): ?> <td><?php echo $value; ?></td> <?php endforeach; ?> </tr> <?php endforeach; ?> </tbody> </table> </body> </html>";

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.0070.00716.88
8.3.50.0000.01516.37
8.3.40.0110.00418.89
8.3.30.0040.01118.67
8.3.20.0080.00020.20
8.3.10.0080.00021.68
8.3.00.0070.00021.71
8.2.180.0180.00416.75
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00821.14
8.2.120.0080.00026.35
8.2.110.0040.00421.00
8.2.100.0030.01017.93
8.2.90.0030.00519.17
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00917.90
8.2.50.0080.00018.09
8.2.40.0030.00522.13
8.2.30.0000.00819.38
8.2.20.0000.00817.68
8.2.10.0000.00717.96
8.2.00.0040.00417.94
8.1.280.0120.00925.92
8.1.270.0130.00623.63
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00722.45
8.1.230.0030.00718.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0080.00018.57
8.1.160.0000.00820.63
8.1.150.0020.00518.83
8.1.140.0000.00819.58
8.1.130.0080.00017.55
8.1.120.0040.00417.48
8.1.110.0040.00417.31
8.1.100.0000.00717.37
8.1.90.0070.00017.30
8.1.80.0030.00617.29
8.1.70.0030.00617.29
8.1.60.0040.00417.57
8.1.50.0000.00917.36
8.1.40.0080.00017.39
8.1.30.0040.00417.56
8.1.20.0040.00417.58
8.1.10.0000.00717.41
8.1.00.0070.00417.47
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0020.00518.44
8.0.270.0000.00717.21
8.0.260.0060.00017.25
8.0.250.0030.00317.03
8.0.240.0000.00617.00
8.0.230.0040.00417.09
8.0.220.0030.00517.01
8.0.210.0040.00416.87
8.0.200.0040.00416.98
8.0.190.0060.00316.91
8.0.180.0000.00716.95
8.0.170.0000.00716.94
8.0.160.0050.00217.00
8.0.150.0060.00616.82
8.0.140.0080.00016.78
8.0.130.0030.00313.38
8.0.120.0050.00316.82
8.0.110.0080.00016.87
8.0.100.0040.00416.95
8.0.90.0000.00716.84
8.0.80.0030.01316.98
8.0.70.0040.00416.88
8.0.60.0030.00516.95
8.0.50.0040.00416.75
8.0.30.0050.01317.20
8.0.20.0120.00917.40
8.0.10.0000.00716.95
8.0.00.0100.00916.69
7.4.330.0000.00516.69
7.4.320.0060.00016.45
7.4.300.0030.00316.46
7.4.290.0030.00616.59
7.4.280.0000.00816.58
7.4.270.0060.00016.59
7.4.260.0000.00816.54
7.4.250.0060.00316.43
7.4.240.0000.00716.54
7.4.230.0000.00816.53
7.4.220.0070.01116.46
7.4.210.0070.00816.38
7.4.200.0000.00716.45
7.4.160.0100.00516.65
7.4.150.0120.00617.40
7.4.140.0110.01117.86
7.4.130.0130.00516.50
7.4.120.0030.01416.43
7.4.110.0060.01316.64
7.4.100.0030.01316.49
7.4.90.0080.00816.45
7.4.80.0140.00619.39
7.4.70.0060.01016.58
7.4.60.0040.01116.44
7.4.50.0000.01316.39
7.4.40.0090.00816.49
7.4.30.0100.00716.57
7.4.00.0060.00614.84
7.3.330.0040.00413.00
7.3.320.0000.00613.16
7.3.310.0070.00016.12
7.3.300.0030.00416.18
7.3.290.0000.00716.25
7.3.280.0120.00716.27
7.3.270.0040.01317.40
7.3.260.0160.00616.45
7.3.250.0100.00916.27
7.3.240.0150.00416.41
7.3.230.0030.01316.54
7.3.210.0140.00316.41
7.3.200.0060.01119.39
7.3.190.0050.01116.39
7.3.180.0100.00716.42
7.3.170.0080.01316.55
7.3.160.0100.00616.30
7.2.330.0120.01016.61
7.2.320.0110.01116.61
7.2.310.0070.01116.50
7.2.300.0150.00616.30
7.2.290.0060.00916.55
7.2.60.0060.00616.71
7.2.00.0030.01019.48
7.1.200.0260.00415.33
7.1.100.0030.00918.00
7.1.70.0000.00917.11
7.1.60.0170.00719.40
7.1.50.0030.01416.35
7.1.00.0030.07722.18
7.0.200.0300.00714.53
7.0.60.0200.08321.71
7.0.50.0100.04717.79
7.0.40.0100.04320.02
7.0.30.0330.08020.18
7.0.20.0230.03720.32
7.0.10.0070.08020.01
7.0.00.0100.07320.21
5.6.280.0030.05721.04
5.6.210.0000.09020.50
5.6.200.0030.08318.08
5.6.190.0100.04020.57
5.6.180.0270.07020.48
5.6.170.0430.06720.44
5.6.160.0070.04020.40
5.6.150.0170.05718.10
5.6.140.0070.05018.24
5.6.130.0030.06018.20
5.6.120.0030.04020.98
5.6.110.0000.04321.11
5.6.100.0070.09321.00
5.6.90.0130.06721.12
5.6.80.0030.08320.34
5.5.350.0400.05720.42
5.5.340.0130.07717.91
5.5.330.0130.08020.13
5.5.320.0200.07320.43
5.5.310.0330.05720.29
5.5.300.0170.07018.02
5.5.290.0070.08018.01
5.5.280.0100.08020.86
5.5.270.0000.09320.67
5.5.260.0100.05720.86
5.5.250.0100.07320.58
5.5.240.0200.03720.04

preferences:
48.79 ms | 400 KiB | 5 Q