3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'name' => ['Some message to display1'], 'test' => ['Some message to display2'], 'kudos' => ['Some message to display3'] ]; echo implode(', ', array_merge(...array_values($array))); echo "\n---\n"; echo array_reduce($array, function($carry, $item) {return $carry .= ($carry ? ', ' : '') . $item[0]; }, '');

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.4.130.0060.00318.01
8.4.120.0100.01020.72
8.4.110.0120.00822.43
8.4.100.0090.00917.59
8.4.90.0120.00918.60
8.4.80.0060.00218.63
8.4.70.0030.00518.03
8.4.60.0110.00918.95
8.4.50.0140.00720.41
8.4.40.0090.00919.18
8.4.30.0080.00819.66
8.4.20.0180.00420.46
8.4.10.0030.00618.79
8.3.260.0140.00516.86
8.3.250.0060.00218.92
8.3.240.0120.00816.99
8.3.230.0070.01316.81
8.3.220.0130.00418.88
8.3.210.0100.01016.64
8.3.200.0060.00216.64
8.3.190.0090.00417.20
8.3.180.0090.00918.30
8.3.170.0140.00317.20
8.3.160.0180.00018.36
8.3.150.0110.00316.80
8.3.140.0040.00416.68
8.3.130.0060.00318.25
8.3.120.0100.00018.93
8.3.110.0030.00620.94
8.3.100.0000.01024.06
8.3.90.0000.00826.77
8.3.80.0040.00416.50
8.3.70.0140.00418.27
8.3.60.0180.00418.43
8.3.50.0130.00317.47
8.3.40.0080.00818.96
8.3.30.0110.00418.70
8.3.20.0050.00221.91
8.3.10.0040.00421.70
8.3.00.0040.00421.87
8.2.290.0040.00520.44
8.2.280.0120.00618.57
8.2.270.0040.00417.03
8.2.260.0120.00618.47
8.2.250.0030.00616.70
8.2.240.0040.00419.03
8.2.230.0080.00822.58
8.2.220.0090.00337.54
8.2.210.0080.00026.77
8.2.200.0030.00616.75
8.2.190.0070.00716.75
8.2.180.0190.00816.63
8.2.170.0090.00622.96
8.2.160.0120.00919.20
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00320.50
8.2.120.0040.00426.35
8.2.110.0100.00019.24
8.2.100.0060.00617.84
8.2.90.0000.00817.61
8.2.80.0000.00817.97
8.2.70.0040.00418.16
8.2.60.0030.00518.22
8.2.50.0000.00818.10
8.2.40.0070.00320.91
8.2.30.0050.00219.29
8.2.20.0000.00718.04
8.2.10.0070.00018.20
8.2.00.0060.00319.48
8.1.330.0120.00721.97
8.1.320.0080.00716.05
8.1.310.0070.01018.38
8.1.300.0120.00017.92
8.1.290.0090.00018.88
8.1.280.0140.01025.92
8.1.270.0080.00023.76
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0110.00017.48
8.1.230.0070.00517.70
8.1.220.0030.00617.79
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0040.00418.66
8.1.160.0090.00018.90
8.1.150.0070.00018.81
8.1.140.0030.00322.16
8.1.130.0030.00320.05
8.1.120.0040.00417.50
8.1.110.0040.00417.50
8.1.100.0030.00617.35
8.1.90.0050.00217.53
8.1.80.0060.00317.47
8.1.70.0000.00717.53
8.1.60.0030.00617.50
8.1.50.0000.00817.52
8.1.40.0030.00617.56
8.1.30.0050.00217.68
8.1.20.0060.00317.70
8.1.10.0040.00417.62
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.36
8.0.270.0050.00317.18
8.0.260.0000.00918.45
8.0.250.0040.00417.00
8.0.240.0000.00816.88
8.0.230.0000.00716.96
8.0.220.0000.00716.89
8.0.210.0000.00716.80
8.0.200.0030.00317.01
8.0.190.0000.00817.00
8.0.180.0080.00016.82
8.0.170.0030.00516.90
8.0.160.0060.00316.82
8.0.150.0080.00016.84
8.0.140.0070.00016.88
8.0.130.0050.00013.27
8.0.120.0000.00716.84
8.0.110.0030.00316.85
8.0.100.0000.00716.73
8.0.90.0050.00316.80
8.0.80.0110.00416.79
8.0.70.0080.00016.85
8.0.60.0040.00416.70
8.0.50.0040.00416.93
8.0.30.0120.00817.05
8.0.20.0130.00717.40
8.0.10.0000.00816.97
8.0.00.0150.00716.70
7.4.330.0020.00216.77
7.4.320.0060.00016.38
7.4.300.0000.00616.54
7.4.290.0030.00516.42
7.4.280.0090.00316.50
7.4.270.0070.00016.53
7.4.260.0030.00316.50
7.4.250.0000.00716.60
7.4.240.0080.00016.54
7.4.230.0070.00016.63
7.4.220.0050.00316.62
7.4.210.0110.00616.58
7.4.200.0030.00316.56
7.4.160.0080.01016.50
7.4.140.0110.00817.86
7.4.130.0130.00816.33
7.4.120.0110.00816.58
7.4.110.0100.01416.61
7.4.100.0090.01216.47
7.4.90.0150.00316.43
7.4.80.0090.01019.39
7.4.70.0060.01216.52
7.4.60.0120.00616.53
7.4.50.0030.01016.46
7.4.40.0100.00616.59
7.4.00.0130.00315.00
7.3.330.0030.00313.27
7.3.320.0030.00313.17
7.3.310.0050.00216.17
7.3.300.0030.00316.17
7.3.290.0070.00016.30
7.3.280.0090.00516.23
7.3.260.0120.00616.37
7.3.240.0140.00516.38
7.3.230.0130.00816.46
7.3.210.0070.01016.47
7.3.200.0100.00616.58
7.3.190.0100.01316.28
7.3.180.0100.00616.25
7.3.170.0090.01216.43
7.3.160.0070.01316.53
7.2.330.0030.01416.71
7.2.320.0120.00616.60
7.2.310.0030.01316.75
7.2.300.0100.00716.63
7.2.290.0080.00816.41
7.2.120.0030.01316.45
7.2.110.0030.01316.59
7.2.100.0120.00316.56
7.2.90.0080.00416.57
7.2.80.0040.01116.72
7.2.70.0090.00316.79
7.2.60.0060.00816.99
7.2.50.0060.00616.78
7.2.40.0060.00616.66
7.2.30.0030.01416.84
7.2.20.0070.00716.63
7.2.10.0070.00716.77
7.2.00.0060.00616.69
5.6.380.0110.00014.29

preferences:
143.09 ms | 403 KiB | 5 Q