3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ ['gross_value' => '100', 'quantity' => '5'], ['gross_value' => '200', 'quantity' => '6'] ]; $arr2 = [ ['item_title_id' => '1', 'order_id' => '3'], ['item_title_id' => '2', 'order_id' => '4'] ]; var_export( array_map('array_merge', $arr1, $arr2) ); echo "\n---\n"; var_export( array_merge_recursive($arr1, $arr2) );

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.140.0140.00917.49
8.4.130.0030.00618.77
8.4.120.0140.00623.98
8.4.110.0070.00518.71
8.4.100.0100.01218.75
8.4.90.0120.00722.39
8.4.80.0130.00719.38
8.4.70.0130.00817.78
8.4.60.0110.00518.69
8.4.50.0130.00717.60
8.4.40.0040.01517.82
8.4.30.0160.00319.06
8.4.20.0170.00318.75
8.4.10.0060.00323.45
8.3.270.0110.00816.65
8.3.260.0100.00916.62
8.3.250.0080.00818.83
8.3.240.0130.00617.12
8.3.230.0110.00716.68
8.3.220.0100.00718.92
8.3.210.0110.00816.53
8.3.200.0050.00416.50
8.3.190.0140.00416.96
8.3.180.0080.00818.30
8.3.170.0070.00317.30
8.3.160.0070.01116.64
8.3.150.0110.00716.91
8.3.140.0080.00016.86
8.3.130.0030.00618.38
8.3.120.0110.00720.55
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0060.00318.18
8.3.70.0110.00416.63
8.3.60.0070.01418.20
8.3.50.0110.00720.10
8.3.40.0100.01020.23
8.3.30.0070.00718.72
8.3.20.0000.00824.18
8.3.10.0030.00624.66
8.3.00.0030.01026.16
8.2.290.0070.00520.59
8.2.280.0140.00618.18
8.2.270.0160.00316.43
8.2.260.0080.00018.86
8.2.250.0030.00618.52
8.2.240.0070.00416.97
8.2.230.0090.00322.58
8.2.220.0100.01037.54
8.2.210.0100.00726.77
8.2.200.0040.00416.75
8.2.190.0200.00016.58
8.2.180.0150.00025.92
8.2.170.0110.00718.90
8.2.160.0090.00622.96
8.2.150.0000.00825.66
8.2.140.0050.00224.66
8.2.130.0000.00826.16
8.2.120.0100.00326.16
8.2.110.0060.01020.53
8.2.100.0070.00417.78
8.2.90.0080.00017.63
8.2.80.0040.00418.61
8.2.70.0050.00317.63
8.2.60.0040.00417.63
8.2.50.0040.00417.55
8.2.40.0000.00918.22
8.2.30.0040.00417.94
8.2.20.0000.00719.18
8.2.10.0070.00017.95
8.2.00.0000.00719.24
8.1.330.0090.00621.70
8.1.320.0120.00815.81
8.1.310.0070.01016.76
8.1.300.0090.00019.80
8.1.290.0090.00030.84
8.1.280.0080.00825.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00922.07
8.1.230.0090.00320.83
8.1.220.0000.00818.62
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0040.00417.40
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00719.02
8.1.150.0040.00418.54
8.1.140.0050.00317.40
8.1.130.0040.00418.84
8.1.120.0000.00717.46
8.1.110.0120.00417.34
8.1.100.0080.00817.26
8.1.90.0110.00417.31
8.1.80.0080.00817.34
8.1.70.0110.00417.25
8.1.60.0140.00417.37
8.1.50.0110.00717.44
8.1.40.0130.00417.41
8.1.30.0150.00217.49
8.1.20.0090.00917.53
8.1.10.0130.00517.44
8.1.00.0100.01017.44
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.56
8.0.270.0070.00017.18
8.0.260.0000.00618.40
8.0.250.0030.00316.88
8.0.240.0060.00616.79
8.0.230.0060.00416.57
8.0.220.0080.00816.73
8.0.210.0120.00416.73
8.0.200.0110.00416.87
8.0.190.0060.00916.77
8.0.180.0070.00716.78
8.0.170.0090.00516.75
8.0.160.0100.00316.70
8.0.150.0100.00416.75
8.0.140.0090.00516.72
8.0.130.0090.00416.72
8.0.120.0090.00416.66
8.0.110.0070.00816.75
8.0.100.0100.00616.79
8.0.90.0100.00116.68
8.0.80.0080.00316.71
8.0.70.0080.00316.72
8.0.60.0130.00316.75
8.0.50.0120.00216.76
8.0.30.0050.00816.73
8.0.20.0070.00616.81
8.0.10.0090.00516.87
7.4.330.0030.00315.55
7.4.320.0100.00416.49
7.4.300.0110.00716.38
7.4.290.0070.01016.27
7.4.280.0120.00416.47
7.4.270.0120.00116.37
7.4.260.0100.00416.40
7.4.250.0080.00316.36
7.4.240.0080.00316.37
7.4.230.0070.00416.37
7.4.220.0090.00416.35
7.4.210.0080.00316.35
7.4.200.0070.00316.47
7.4.190.0110.00016.49
7.4.180.0080.00416.40
7.4.160.0030.00816.45
7.4.150.0080.00216.23
7.4.140.0060.00316.21
7.4.130.0100.00216.27
7.4.120.0030.00916.39
7.4.110.0060.00316.39
7.4.100.0110.00016.39
7.4.90.0100.00216.37
7.4.80.0060.00316.16
7.4.70.0060.00316.27
7.4.60.0050.00516.02
7.4.50.0060.00616.26
7.4.40.0070.00716.31
7.4.30.0050.00916.44
7.4.20.0110.00316.34
7.4.10.0110.00316.29
7.4.00.0020.01116.36

preferences:
30.08 ms | 403 KiB | 5 Q