3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrayFirst = [ "index" => [ 'a' => '1', ], [ 'a' => '2', ] ]; $arraySecond = [ "index" => [ 'b' => '1', ], [ 'b' => '2', ] ]; var_export( array_map( function(...$items) { return array_merge(...$items); }, $arrayFirst, $arraySecond ) );

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.70.0040.01116.58
8.3.60.0040.01416.50
8.3.50.0070.01119.95
8.3.40.0030.01020.47
8.3.30.0070.01118.49
8.3.20.0000.00724.18
8.3.10.0030.00624.66
8.3.00.0000.00826.16
8.2.190.0000.01816.75
8.2.180.0100.00725.92
8.2.170.0040.01118.87
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0070.00020.97
8.2.110.0090.00921.11
8.2.100.0100.00317.84
8.2.90.0000.00817.75
8.2.80.0040.00417.97
8.2.70.0060.00318.05
8.2.60.0050.00318.20
8.2.50.0040.00418.10
8.2.40.0050.00219.48
8.2.30.0040.00418.05
8.2.20.0030.00519.30
8.2.10.0000.00918.20
8.2.00.0050.00319.22
8.1.280.0110.00425.92
8.1.270.0050.00324.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0070.00419.00
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00517.48
8.1.190.0050.00317.35
8.1.180.0060.00618.10
8.1.170.0080.00018.47
8.1.160.0050.00318.88
8.1.150.0040.00418.55
8.1.140.0000.00717.50
8.1.130.0030.00318.93
8.1.120.0000.00717.37
8.1.110.0000.00817.46
8.1.100.0000.00717.29
8.1.90.0080.00817.44
8.1.80.0050.01017.51
8.1.70.0110.00417.46
8.1.60.0160.00317.56
8.1.50.0180.00017.49
8.1.40.0180.00017.52
8.1.30.0090.00917.54
8.1.20.0130.00417.63
8.1.10.0140.00317.43
8.1.00.0060.01217.31
8.0.300.0060.00319.59
8.0.290.0060.00316.75
8.0.280.0030.00318.34
8.0.270.0070.00017.85
8.0.260.0000.00618.29
8.0.250.0000.00716.77
8.0.240.0070.00016.81
8.0.230.0030.00316.80
8.0.220.0120.00316.79
8.0.210.0050.00916.85
8.0.200.0040.01016.78
8.0.190.0100.00516.92
8.0.180.0070.00716.93
8.0.170.0090.00516.86
8.0.160.0050.01016.89
8.0.150.0130.00316.72
8.0.140.0130.00316.72
8.0.130.0050.01216.79
8.0.120.0160.00016.92
8.0.110.0070.00716.71
8.0.100.0150.00016.84
8.0.90.0100.00516.86
8.0.80.0090.00516.79
8.0.70.0160.00016.87
8.0.60.0110.00416.92
8.0.50.0140.00016.81
8.0.30.0090.00516.82
8.0.20.0100.00516.93
8.0.10.0040.01116.99
7.4.330.0020.00215.55
7.4.320.0030.00316.43
7.4.300.0110.00416.48
7.4.290.0100.00216.49
7.4.280.0070.00716.59
7.4.270.0130.00316.56
7.4.260.0100.00516.43
7.4.250.0130.00316.57
7.4.240.0040.01116.30
7.4.230.0120.00216.30
7.4.220.0130.00016.63
7.4.210.0120.00016.51
7.4.200.0060.00616.48
7.4.190.0130.00316.45
7.4.180.0160.00016.59
7.4.160.0060.00616.41
7.4.150.0060.00616.47
7.4.140.0090.00416.23
7.4.130.0060.00616.52
7.4.120.0030.00716.21
7.4.110.0080.00616.36
7.4.100.0100.00516.38
7.4.90.0110.00416.35
7.4.80.0120.00316.26
7.4.70.0090.00616.35
7.4.60.0100.00316.32
7.4.50.0140.00016.32
7.4.40.0080.00516.35
7.4.30.0080.00516.36
7.4.20.0110.00316.45
7.4.10.0050.00916.45
7.4.00.0070.00716.29

preferences:
37.04 ms | 401 KiB | 5 Q