3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array( [ "id" => 220950, "order_reference" => "600125479" ], [ "id" => 220985, "order_reference" => "498638" ] ); $array2 = array( [ "entity_id" => 1, "order_status" => "test" ], [ "entity_id" => 2, "order_status" => "test2" ] ); $result = array_map("array_merge",$array1,$array2); print_r($result);

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.0120.00917.25
8.4.130.0130.00717.76
8.4.120.0140.00720.61
8.4.110.0140.00622.52
8.4.100.0140.00719.13
8.4.90.0130.00718.51
8.4.80.0130.00717.32
8.4.70.0090.00917.79
8.4.60.0160.00518.77
8.4.50.0110.00818.52
8.4.40.0040.00417.59
8.4.30.0130.00619.11
8.4.20.0040.01124.15
8.4.10.0080.00017.56
8.3.270.0090.01016.49
8.3.260.0090.01016.54
8.3.250.0100.00619.01
8.3.240.0130.00718.96
8.3.230.0110.00916.53
8.3.220.0120.00717.14
8.3.210.0150.00416.51
8.3.200.0060.00316.46
8.3.190.0070.00118.85
8.3.180.0060.00416.96
8.3.170.0070.01118.76
8.3.160.0000.00820.06
8.3.150.0110.00716.97
8.3.140.0120.00619.02
8.3.130.0050.00318.23
8.3.120.0080.00020.45
8.3.110.0000.00920.94
8.3.100.0070.01118.13
8.3.90.0040.00426.77
8.3.80.0060.00319.36
8.3.70.0080.00816.63
8.3.60.0100.01018.43
8.3.50.0100.00517.33
8.3.40.0090.00618.55
8.3.30.0130.00318.59
8.3.20.0040.00420.09
8.3.10.0030.00523.48
8.3.00.0040.00419.43
8.2.290.0120.00520.57
8.2.280.0150.00616.45
8.2.270.0140.00418.84
8.2.260.0060.00916.21
8.2.250.0050.00318.61
8.2.240.0000.00918.90
8.2.230.0040.00422.58
8.2.220.0060.01024.06
8.2.210.0140.00426.77
8.2.200.0080.00018.88
8.2.190.0040.01116.58
8.2.180.0110.00418.29
8.2.170.0060.01222.96
8.2.160.0090.00620.38
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00619.23
8.2.110.0040.00420.92
8.2.100.0040.00819.82
8.2.90.0000.01019.63
8.2.80.0000.00818.03
8.2.70.0090.00017.80
8.2.60.0050.00318.03
8.2.50.0040.00418.10
8.2.40.0060.00320.89
8.2.30.0040.00419.29
8.2.20.0040.00417.98
8.2.10.0070.00018.04
8.2.00.0030.00518.09
8.1.330.0080.01021.92
8.1.320.0150.00615.84
8.1.310.0050.00218.21
8.1.300.0070.01117.67
8.1.290.0060.00330.84
8.1.280.0070.01025.92
8.1.270.0040.00422.01
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.77
8.1.230.0030.00922.68
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0040.00418.46
8.1.160.0030.00518.77
8.1.150.0000.00820.22
8.1.140.0070.00017.68
8.1.130.0030.00319.04
8.1.120.0000.00717.29
8.1.110.0030.00317.38
8.1.100.0000.00717.42
8.1.90.0040.00417.40
8.1.80.0050.00317.40
8.1.70.0080.00017.39
8.1.60.0060.00317.50
8.1.50.0000.00717.45
8.1.40.0030.00617.35
8.1.30.0000.01117.45
8.1.20.0000.00917.61
8.1.10.0040.00417.40
8.1.00.0040.00417.36
8.0.300.0000.00719.79
8.0.290.0000.00716.75
8.0.280.0000.00818.29
8.0.270.0070.00017.23
8.0.260.0040.00416.66
8.0.250.0000.00716.75
8.0.240.0030.00316.79
8.0.230.0040.00416.92
8.0.220.0050.00316.75
8.0.210.0040.00416.71
8.0.200.0080.00016.88
8.0.190.0000.00816.86
8.0.180.0000.00816.74
8.0.170.0030.00616.75
8.0.160.0000.00816.94
8.0.150.0000.00716.65
8.0.140.0000.00716.80
8.0.130.0030.00313.20
8.0.120.0000.00716.79
8.0.110.0040.00416.66
8.0.100.0040.00416.88
8.0.90.0050.00316.81
8.0.80.0000.01516.80
8.0.70.0040.00416.84
8.0.60.0040.00416.86
8.0.50.0050.00216.91
8.0.30.0130.00416.86
8.0.20.0160.00417.40
8.0.10.0080.00016.77
8.0.00.0090.01316.51
7.4.330.0000.00515.55
7.4.320.0000.00716.48
7.4.300.0000.00616.33
7.4.290.0040.00416.40
7.4.280.0070.00416.47
7.4.270.0070.00016.34
7.4.260.0000.00716.41
7.4.250.0070.00016.37
7.4.240.0070.00016.45
7.4.230.0000.00716.43
7.4.220.0080.00016.26
7.4.210.0090.00916.53
7.4.200.0030.00316.63
7.4.160.0070.00916.35
7.4.150.0140.00317.40
7.4.140.0110.00817.86
7.4.130.0050.01516.20
7.4.120.0050.01416.51
7.4.110.0070.01016.58
7.4.100.0030.01316.55
7.4.90.0130.00316.40
7.4.80.0100.01419.39
7.4.70.0080.00816.34
7.4.60.0090.00816.51
7.4.50.0110.00816.21
7.4.40.0000.02416.42
7.4.00.0040.00814.88
7.3.330.0000.00612.97
7.3.320.0030.00313.02
7.3.310.0000.00716.15
7.3.300.0070.00016.11
7.3.290.0140.00016.15
7.3.280.0070.01016.15
7.3.270.0030.01317.40
7.3.260.0140.00816.38
7.3.240.0080.00916.11
7.3.230.0070.01016.12
7.3.210.0090.00616.44
7.3.200.0030.01316.32
7.3.190.0070.01316.31
7.3.180.0070.01016.37
7.3.170.0070.01416.40
7.3.160.0130.00616.16
7.2.330.0130.00316.48
7.2.320.0110.01116.30
7.2.310.0070.01016.44
7.2.300.0080.00816.59
7.2.290.0130.00316.47
7.2.60.0060.00616.52
7.2.20.0140.01419.80
7.2.10.0090.01819.46
7.2.00.0090.01819.63
7.1.200.0120.00315.66
7.1.140.0060.01618.79
7.1.130.0080.01818.76
7.1.120.0120.01518.66
7.1.110.0080.01018.02
7.1.100.0060.01418.06
7.1.90.0100.00918.03
7.1.80.0090.00917.83
7.1.70.0090.01316.81
7.1.60.0290.01534.68
7.1.50.0260.01334.45
7.1.40.0270.01034.31
7.1.30.0250.01234.15
7.1.20.0240.01334.41
7.1.10.0080.00916.40
7.1.00.0070.01016.79

preferences:
138.5 ms | 403 KiB | 5 Q