3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ ['gross_value' => '100', 'quantity' => '1'], ['gross_value' => '200', 'quantity' => '1'] ]; $arr2 = [ ['item_title_id' => '1', 'order_id' => '4'], ['item_title_id' => '2', 'order_id' => '4'] ]; foreach ($arr1 as $i => &$row) { $row = array_replace($row, $arr2[$i]); } var_export($arr1);

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.0160.00717.49
8.4.130.0040.00618.85
8.4.120.0080.00824.02
8.4.110.0090.01118.71
8.4.100.0120.00818.66
8.4.90.0050.00522.49
8.4.80.0090.00717.81
8.4.70.0090.00817.86
8.4.60.0080.00419.00
8.4.50.0090.01119.34
8.4.40.0130.00717.93
8.4.30.0060.00318.61
8.4.20.0150.00318.70
8.4.10.0130.00723.64
8.3.270.0130.00716.73
8.3.260.0090.00716.52
8.3.250.0120.00618.88
8.3.240.0070.00517.13
8.3.230.0110.00716.48
8.3.220.0040.00518.81
8.3.210.0110.01116.58
8.3.200.0050.00316.41
8.3.190.0120.00717.28
8.3.180.0060.00318.99
8.3.170.0070.01118.92
8.3.160.0000.00718.31
8.3.150.0100.00717.42
8.3.140.0120.00617.11
8.3.130.0050.00316.41
8.3.120.0040.00718.95
8.3.110.0150.00616.39
8.3.100.0040.00418.43
8.3.90.0100.01026.77
8.3.80.0030.00616.63
8.3.70.0110.00716.58
8.3.60.0090.00616.38
8.3.50.0110.00420.21
8.3.40.0140.00020.06
8.3.30.0040.01218.54
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.290.0050.00520.58
8.2.280.0080.01118.55
8.2.270.0070.01116.84
8.2.260.0070.00719.04
8.2.250.0080.00018.27
8.2.240.0050.00317.31
8.2.230.0000.00820.94
8.2.220.0000.01024.06
8.2.210.0060.01226.77
8.2.200.0000.01018.28
8.2.190.0090.00916.58
8.2.180.0110.00425.92
8.2.170.0000.01418.79
8.2.160.0110.00722.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0080.00020.35
8.2.100.0030.00717.84
8.2.90.0080.00020.57
8.2.80.0040.00418.15
8.2.70.0030.00618.04
8.2.60.0000.00718.16
8.2.50.0080.00018.07
8.2.40.0040.00418.16
8.2.30.0000.00818.01
8.2.20.0000.00719.30
8.2.10.0040.00418.13
8.2.00.0000.00719.32
8.1.330.0070.00321.91
8.1.320.0130.00716.19
8.1.310.0040.00418.43
8.1.300.0030.00618.35
8.1.290.0060.00330.84
8.1.280.0160.00025.92
8.1.270.0060.00321.99
8.1.260.0030.00626.35
8.1.250.0090.00028.09
8.1.240.0040.00423.91
8.1.230.0080.00420.97
8.1.220.0060.00317.74
8.1.210.0050.00318.96
8.1.200.0040.00417.48
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0110.00018.62
8.1.160.0040.00418.80
8.1.150.0000.00818.55
8.1.140.0080.00017.52
8.1.130.0000.00718.81
8.1.120.0000.00717.46
8.1.110.0040.01317.35
8.1.100.0000.01517.32
8.1.90.0100.00517.43
8.1.80.0050.01017.36
8.1.70.0120.00417.29
8.1.60.0130.00517.48
8.1.50.0160.00017.30
8.1.40.0150.00317.47
8.1.30.0090.00917.52
8.1.20.0140.00417.60
8.1.10.0090.00917.43
8.1.00.0140.00317.41
8.0.300.0000.00719.98
8.0.290.0070.00016.75
8.0.280.0000.00920.12
8.0.270.0080.00017.94
8.0.260.0030.00318.45
8.0.250.0030.00317.02
8.0.240.0000.00716.91
8.0.230.0150.00016.73
8.0.220.0150.00016.81
8.0.210.0000.01416.80
8.0.200.0070.00716.92
8.0.190.0120.00216.74
8.0.180.0060.00916.80
8.0.170.0120.00316.85
8.0.160.0080.00816.81
8.0.150.0070.00716.73
8.0.140.0070.00716.65
8.0.130.0070.00716.70
8.0.120.0100.00516.69
8.0.110.0090.00516.73
8.0.100.0120.00316.83
8.0.90.0050.01016.86
8.0.80.0110.00416.83
8.0.70.0050.01016.69
8.0.60.0090.00516.80
8.0.50.0120.00416.71
8.0.30.0140.00016.71
8.0.20.0070.00716.84
8.0.10.0100.00516.80
7.4.330.0030.00315.55
7.4.320.0110.00416.45
7.4.300.0050.01116.43
7.4.290.0120.00416.41
7.4.280.0130.00416.47
7.4.270.0060.01116.46
7.4.260.0110.00516.52
7.4.250.0110.00616.47
7.4.240.0080.00816.49
7.4.230.0160.00016.49
7.4.220.0090.00416.39
7.4.210.0040.01116.56
7.4.200.0130.00016.36
7.4.190.0090.00516.45
7.4.180.0100.00316.59
7.4.160.0140.00016.52
7.4.150.0070.00716.49
7.4.140.0090.00416.42
7.4.130.0110.00216.46
7.4.120.0030.01016.27
7.4.110.0140.00016.38
7.4.100.0110.00316.50
7.4.90.0050.00516.38
7.4.80.0030.00616.16
7.4.70.0000.01316.40
7.4.60.0140.00016.24
7.4.50.0130.00016.26
7.4.40.0000.01316.14
7.4.30.0110.00316.31
7.4.20.0130.00016.23
7.4.10.0090.00516.29
7.4.00.0130.00316.36

preferences:
30.23 ms | 403 KiB | 5 Q