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.0140.00716.49
8.3.50.0120.00921.05
8.3.40.0000.01418.79
8.3.30.0110.00318.63
8.3.20.0080.00020.34
8.3.10.0000.00823.48
8.3.00.0000.00723.66
8.2.180.0120.00916.75
8.2.170.0110.00422.96
8.2.160.0110.00420.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.12
8.2.120.0040.00426.35
8.2.110.0030.00619.30
8.2.100.0060.00618.05
8.2.90.0000.00719.22
8.2.80.0030.00517.97
8.2.70.0060.00317.38
8.2.60.0030.00517.91
8.2.50.0090.00018.09
8.2.40.0000.00822.32
8.2.30.0000.00719.32
8.2.20.0070.00017.76
8.2.10.0040.00417.94
8.2.00.0030.00318.06
8.1.280.0140.00725.92
8.1.270.0080.00022.14
8.1.260.0030.00628.09
8.1.250.0020.00528.09
8.1.240.0030.00617.66
8.1.230.0030.00919.15
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0000.00816.88
8.1.180.0040.00418.10
8.1.170.0030.00618.66
8.1.160.0000.00820.77
8.1.150.0030.00520.65
8.1.140.0060.00319.58
8.1.130.0040.00417.70
8.1.120.0070.00017.46
8.1.110.0050.00317.26
8.1.100.0000.00717.37
8.1.90.0000.00817.45
8.1.80.0040.00417.39
8.1.70.0000.00717.42
8.1.60.0020.00517.45
8.1.50.0000.00917.47
8.1.40.0030.00617.35
8.1.30.0030.00517.59
8.1.20.0080.00017.59
8.1.10.0000.00817.48
8.1.00.0000.01017.34
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0030.00317.33
8.0.260.0030.00317.25
8.0.250.0030.00317.03
8.0.240.0000.00717.01
8.0.230.0030.00316.98
8.0.220.0040.00416.94
8.0.210.0050.00316.87
8.0.200.0040.00417.01
8.0.190.0040.00416.92
8.0.180.0000.00816.86
8.0.170.0040.00416.94
8.0.160.0030.00316.99
8.0.150.0060.00316.88
8.0.140.0000.00716.91
8.0.130.0030.00313.34
8.0.120.0040.00416.79
8.0.110.0000.00717.02
8.0.100.0000.00716.83
8.0.90.0040.00416.90
8.0.80.0070.00716.95
8.0.70.0000.00716.77
8.0.60.0000.00816.79
8.0.50.0040.00416.91
8.0.30.0080.01017.02
8.0.20.0050.01417.40
8.0.10.0000.00716.91
8.0.00.0110.01016.85
7.4.330.0020.00216.89
7.4.320.0060.00016.40
7.4.300.0050.00216.59
7.4.290.0070.00316.35
7.4.280.0040.00416.39
7.4.270.0060.00016.46
7.4.260.0030.00316.45
7.4.250.0000.00716.36
7.4.240.0000.00716.51
7.4.230.0070.00016.20
7.4.220.0230.00616.50
7.4.210.0120.00416.55
7.4.200.0000.00716.44
7.4.160.0090.00616.58
7.4.150.0130.00717.40
7.4.140.0110.01117.86
7.4.130.0110.00616.54
7.4.120.0160.00316.40
7.4.110.0150.00316.54
7.4.100.0110.00516.54
7.4.90.0030.01616.47
7.4.80.0120.00919.39
7.4.70.0110.00616.37
7.4.60.0120.00316.46
7.4.50.0030.01016.50
7.4.40.0100.00716.58
7.4.30.0060.01216.62
7.4.10.0110.00714.64
7.4.00.0060.01014.95
7.3.330.0030.00313.10
7.3.320.0000.00513.11
7.3.310.0030.00316.23
7.3.300.0030.00316.26
7.3.290.0040.00216.28
7.3.280.0050.00916.22
7.3.270.0150.00317.40
7.3.260.0110.00716.35
7.3.250.0100.00716.30
7.3.240.0130.00416.39
7.3.230.0040.01416.39
7.3.210.0160.00616.52
7.3.200.0090.00919.39
7.3.190.0120.00316.52
7.3.180.0160.00016.59
7.3.170.0140.00516.46
7.3.160.0040.01216.57
7.3.130.0040.00614.79
7.3.120.0090.00914.74
7.3.110.0030.01614.81
7.3.100.0030.01414.95
7.3.90.0090.00914.91
7.3.80.0060.00814.63
7.3.70.0030.01014.50
7.3.60.0090.00614.77
7.3.50.0100.00314.84
7.3.40.0040.00714.83
7.3.30.0090.00614.81
7.3.20.0120.00616.71
7.3.10.0080.00816.46
7.3.00.0030.01016.61
7.2.330.0060.01316.46
7.2.320.0120.00616.36
7.2.310.0060.01116.46
7.2.300.0130.00616.29
7.2.290.0080.00916.36
7.2.260.0100.00715.11
7.2.250.0070.01114.74
7.2.240.0070.00714.82
7.2.230.0060.01214.73
7.2.220.0030.01315.09
7.2.210.0070.00415.04
7.2.200.0120.00315.05
7.2.190.0030.00615.05
7.2.180.0130.00315.04
7.2.170.0000.01114.52
7.2.160.0070.00714.90
7.2.150.0110.00417.02
7.2.140.0060.01316.76
7.2.130.0110.00416.85
7.2.120.0040.01116.54
7.2.110.0060.00916.71
7.2.100.0030.01016.79
7.2.90.0110.00316.98
7.2.80.0000.01216.84
7.2.70.0070.00716.87
7.2.60.0070.00916.79
7.2.50.0030.00616.79
7.2.40.0150.00016.88
7.2.30.0070.01016.98
7.2.20.0070.00716.83
7.2.10.0070.00716.76
7.2.00.0070.00718.06
7.1.330.0040.00815.60
7.1.320.0090.00615.63
7.1.310.0000.01415.71
7.1.300.0100.00315.71
7.1.290.0100.00315.79
7.1.280.0000.01115.43
7.1.270.0090.00615.71
7.1.260.0000.01515.67
7.1.250.0030.00715.79
7.1.240.0030.01015.76
7.1.230.0100.00315.62
7.1.220.0060.00615.73
7.1.210.0030.01015.83
7.1.200.0130.00215.57
7.1.190.0070.00715.54
7.1.180.0120.00315.57
7.1.170.0050.00515.78
7.1.160.0040.00415.76
7.1.150.0030.01015.61
7.1.140.0030.00515.83
7.1.130.0040.00715.58
7.1.120.0070.00715.60
7.1.110.0000.01315.37
7.1.100.0070.00117.01
7.1.90.0060.00915.70
7.1.80.0040.00415.88
7.1.70.0030.00916.41
7.1.60.0070.01017.64
7.1.50.0080.00216.10
7.1.40.0070.00715.59
7.1.30.0080.00015.56
7.1.20.0070.01015.71
7.1.10.0000.01215.65
7.1.00.0070.04019.06
7.0.330.0030.01015.31
7.0.320.0100.00315.38
7.0.310.0100.00315.34
7.0.300.0040.00415.33
7.0.290.0110.00415.17
7.0.280.0060.00615.18
7.0.270.0030.01015.23
7.0.260.0030.01015.21
7.0.250.0000.01314.98
7.0.240.0060.00615.32
7.0.230.0040.01115.35
7.0.220.0040.00415.27
7.0.210.0030.01015.49
7.0.200.0320.00415.01
7.0.190.0080.00415.13
7.0.180.0080.00015.39
7.0.170.0000.01515.50
7.0.160.0040.00415.27
7.0.150.0060.00615.45
7.0.140.0060.00615.24
7.0.130.0050.00315.39
7.0.120.0060.00615.50
7.0.110.0060.00315.51
7.0.100.0070.00715.12
7.0.90.0050.00515.56
7.0.80.0030.00915.45
7.0.70.0060.00315.37
7.0.60.0150.03518.53
7.0.50.0120.03816.67
7.0.40.0130.04216.89
7.0.30.0170.04216.84
7.0.20.0070.03116.68
7.0.10.0020.05016.65
7.0.00.0020.03116.81
5.6.400.0090.00014.54
5.6.390.0070.00614.64
5.6.380.0040.00814.56
5.6.370.0030.01014.59
5.6.360.0090.00314.63
5.6.350.0060.00614.24
5.6.340.0030.00614.13
5.6.330.0090.00314.11
5.6.320.0030.01214.10
5.6.310.0030.00514.29
5.6.300.0060.00314.59
5.6.290.0000.01314.22
5.6.280.0030.02017.65
5.6.270.0100.00714.37
5.6.260.0040.00414.08
5.6.250.0030.01014.45
5.6.240.0000.01614.32
5.6.230.0030.00614.50
5.6.220.0030.00914.29
5.6.210.0070.05017.37
5.6.200.0100.03816.24
5.6.190.0070.04017.50
5.6.180.0180.03617.32
5.6.170.0210.04117.50
5.6.160.0020.02417.57
5.6.150.0020.03916.18
5.6.140.0100.03916.30
5.6.130.0100.04016.22
5.6.120.0080.03617.64
5.6.110.0050.02217.78
5.6.100.0070.04317.57
5.6.90.0080.04317.53
5.6.80.0090.02617.29
5.6.70.0030.00614.35
5.6.60.0040.00814.45
5.6.50.0070.00714.09
5.6.40.0060.00614.32
5.6.30.0070.00714.38
5.6.20.0070.00714.44
5.6.10.0090.00014.02
5.6.00.0070.00414.18
5.5.380.0080.00414.38
5.5.370.0090.00313.86
5.5.360.0040.00713.98
5.5.350.0220.03317.29
5.5.340.0050.03315.91
5.5.330.0050.04217.27
5.5.320.0150.03917.10
5.5.310.0140.03817.31
5.5.300.0070.03216.14
5.5.290.0070.04316.24
5.5.280.0050.02717.56
5.5.270.0060.02617.30
5.5.260.0070.03517.48
5.5.250.0070.04117.46
5.5.240.0150.03017.24
5.5.230.0030.00914.18
5.5.220.0040.00814.02
5.5.210.0060.00314.13
5.5.200.0100.00014.26
5.5.190.0000.00914.29
5.5.180.0070.00714.20
5.5.170.0070.00314.03
5.5.160.0030.01314.35
5.5.150.0080.00014.13
5.5.140.0060.00614.28
5.5.130.0070.00714.06
5.5.120.0000.01314.31
5.5.110.0110.00314.16
5.5.100.0030.00914.34
5.5.90.0120.00414.27
5.5.80.0030.01014.22
5.5.70.0060.00913.90
5.5.60.0030.00713.82
5.5.50.0080.00314.25
5.5.40.0000.01214.10
5.5.30.0040.00813.96
5.5.20.0030.01014.25
5.5.10.0080.00614.26
5.5.00.0030.00913.97

preferences:
57.34 ms | 401 KiB | 5 Q