3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function concat(string $separator = ' ', string ...$strings): string { return implode($separator, $strings); } echo concat(':', 'One', 'Two', 'Three') . "\n"; echo concat(null, '1', '2', '3');

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.00716.75
8.3.50.0070.01018.04
8.3.40.0140.00718.97
8.3.30.0090.00919.02
8.3.20.0070.00020.17
8.3.10.0040.00423.66
8.3.00.0050.00319.38
8.2.180.0110.00716.63
8.2.170.0150.00022.96
8.2.160.0000.01420.52
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00417.75
8.2.120.0060.00326.35
8.2.110.0100.00019.34
8.2.100.0080.00417.93
8.2.90.0080.00019.19
8.2.80.0030.00617.97
8.2.70.0050.00317.63
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0040.00419.41
8.2.30.0020.00520.57
8.2.20.0000.00817.68
8.2.10.0000.00717.99
8.2.00.0000.00717.94
8.1.270.0040.00423.97
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00320.92
8.1.230.0120.00018.97
8.1.220.0050.00317.74
8.1.210.0030.00718.77
8.1.200.0050.00517.25
8.1.190.0060.00317.22
8.1.180.0050.00318.10
8.1.170.0070.00018.72
8.1.160.0040.00422.09
8.1.150.0050.00218.93
8.1.140.0000.00819.56
8.1.130.0000.00717.57
8.1.120.0000.00717.31
8.1.110.0000.00717.44
8.1.100.0030.00317.41
8.1.90.0040.00417.46
8.1.80.0040.00417.40
8.1.70.0000.00717.23
8.1.60.0030.00617.60
8.1.50.0050.00317.38
8.1.40.0040.00417.46
8.1.30.0030.00617.57
8.1.20.0000.00717.50
8.1.10.0040.00417.44
8.1.00.0040.00417.44
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.38
8.0.270.0000.00717.27
8.0.260.0030.00317.26
8.0.250.0000.00717.02
8.0.240.0040.00417.05
8.0.230.0000.00716.91
8.0.220.0040.00416.99
8.0.210.0000.00716.98
8.0.200.0100.00016.89
8.0.190.0000.00816.96
8.0.180.0000.00716.98
8.0.170.0080.00017.04
8.0.160.0000.00716.94
8.0.150.0040.00416.93
8.0.140.0000.00716.99
8.0.130.0030.00313.38
8.0.120.0080.00016.99
8.0.110.0000.00717.02
8.0.100.0030.00717.00
8.0.90.0070.00016.82
8.0.80.0060.01616.96
8.0.70.0040.00417.00
8.0.60.0070.00016.94
8.0.50.0060.00316.97
8.0.30.0120.00416.93
8.0.20.0080.01117.40
8.0.10.0070.00016.88
8.0.00.0080.00916.74
7.4.330.0000.00516.72
7.4.320.0000.00716.54
7.4.300.0030.00316.51
7.4.290.0030.00316.56
7.4.280.0000.00916.52
7.4.270.0030.00616.66
7.4.260.0050.00316.43
7.4.250.0030.00516.63
7.4.240.0040.00416.57
7.4.230.0030.00316.67
7.4.220.0180.00416.46
7.4.210.0110.00616.66
7.4.200.0040.00416.43
7.4.160.0000.01716.49
7.4.150.0110.00717.40
7.4.140.0120.00817.86
7.4.130.0070.01116.56
7.4.120.0060.01116.49
7.4.110.0030.01316.54
7.4.100.0100.01316.45
7.4.90.0060.01216.70
7.4.80.0090.00919.39
7.4.70.0060.00916.41
7.4.60.0180.00816.66
7.4.50.0090.00616.30
7.4.40.0070.01016.56
7.4.30.0110.01216.45
7.4.00.0030.01314.89
7.3.330.0050.00013.33
7.3.320.0000.00513.36
7.3.310.0030.00316.36
7.3.300.0000.00616.39
7.3.290.0000.00716.43
7.3.280.0060.01116.40
7.3.270.0130.00317.40
7.3.260.0140.00716.51
7.3.250.0100.00916.39
7.3.240.0070.01216.48
7.3.230.0110.00916.42
7.3.210.0030.01316.64
7.3.200.0100.00616.38
7.3.190.0090.00616.52
7.3.180.0120.00616.39
7.3.170.0060.01416.43
7.3.160.0100.00616.54
7.3.10.0090.00616.61
7.3.00.0040.00716.42
7.2.330.0000.01716.65
7.2.320.0180.00616.72
7.2.310.0100.00716.55
7.2.300.0130.00316.66
7.2.290.0080.01116.59
7.2.130.0030.00916.84
7.2.120.0000.01116.76
7.2.110.0040.00816.89
7.2.100.0070.00416.93
7.2.90.0070.00716.76
7.2.80.0100.00316.85
7.2.70.0070.00316.78
7.2.60.0040.00716.79
7.2.50.0100.00316.75
7.2.40.0040.00816.77
7.2.30.0090.00416.65
7.2.20.0060.00916.92
7.2.10.0000.01316.84
7.2.00.0050.00718.04
7.1.250.0060.00615.85
7.1.200.0100.00315.57
7.1.100.0040.00818.07
7.1.70.0000.00816.86
7.1.60.0030.02119.36
7.1.50.0070.01416.78
7.1.00.0030.07322.40
7.0.200.0070.00316.77
7.0.60.0070.06319.91
7.0.50.0030.06017.98
7.0.40.0030.08020.09
7.0.30.0230.07020.26
7.0.20.0270.05720.12
7.0.10.0130.08320.20
7.0.00.0130.08020.18
5.6.280.0030.05720.79
5.6.210.0070.08020.48
5.6.200.0070.08718.25
5.6.190.0100.05720.50
5.6.180.0600.06720.39
5.6.170.0130.04320.55
5.6.160.0070.05020.71
5.6.150.0070.04318.19
5.6.140.0100.07718.19
5.6.130.0030.08318.22
5.6.120.0030.04021.01
5.6.110.0070.08321.02
5.6.100.0100.06721.05
5.6.90.0100.07020.88
5.6.80.0170.07020.52
5.5.350.0130.08720.39
5.5.340.0130.05717.95
5.5.330.0100.04320.47
5.5.320.0000.09020.30
5.5.310.0230.04720.28
5.5.300.0030.04718.08
5.5.290.0170.06717.98
5.5.280.0030.06720.90
5.5.270.0070.04320.84
5.5.260.0130.07720.79
5.5.250.0030.08720.66
5.5.240.4230.04020.12

preferences:
67.25 ms | 400 KiB | 5 Q