3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ [ ["startDate" => "2022-01-01", "endDate" => "2022-01-31"], ["startDate" => "2022-02-01", "endDate" => "2022-02-28"], ["startDate" => "", "endDate" => "", "bannerUrl" => "https://commons.wikimedia.org/wiki/File:Red_rose_flower_detailed_imge.jpg", "imageTarget" => "image Target"] ], [ ["startDate" => "2022-01-01", "endDate" => "2022-01-15"] ] ]; $array2 = [ [ ['image' => (object) ["image A object...."]], ['image' => (object) ["image B object...."]] ], [ ['image' => (object) ["image C object...."]] ], ]; foreach ($array2 as $i1 => $rows) { foreach ($rows as $i2 => $row) { $array1[$i1][$i2] += $row; } } var_export($array1);

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.5.00.0140.01220.13
8.4.150.0030.00014.05
8.4.140.0110.01017.27
8.4.130.0120.00817.90
8.4.120.0070.00222.45
8.4.110.0130.00622.46
8.4.100.0160.00617.78
8.4.90.0110.00718.78
8.4.80.0070.00419.45
8.4.70.0070.01317.75
8.4.60.0140.00618.41
8.4.50.0130.00719.68
8.4.40.0130.00718.11
8.4.30.0080.01118.47
8.4.20.0100.01017.64
8.4.10.0060.00321.88
8.3.280.0120.00818.75
8.3.270.0120.00716.55
8.3.260.0040.00516.69
8.3.250.0090.00918.79
8.3.240.0060.00316.62
8.3.230.0120.00816.87
8.3.220.0090.01117.21
8.3.210.0090.00816.66
8.3.200.0050.00316.95
8.3.190.0040.00418.88
8.3.180.0080.01118.78
8.3.170.0130.00620.65
8.3.160.0160.00318.50
8.3.150.0150.00020.80
8.3.140.0060.00316.73
8.3.130.0030.00518.65
8.3.120.0120.00618.67
8.3.110.0080.00016.62
8.3.100.0190.00016.92
8.3.90.0060.00318.43
8.3.80.0030.00616.75
8.3.70.0070.01016.63
8.3.60.0160.00616.88
8.3.50.0040.01119.97
8.3.40.0150.00021.66
8.3.30.0070.00718.68
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0140.00522.42
8.2.280.0140.00522.45
8.2.270.0070.01017.17
8.2.260.0070.00019.05
8.2.250.0040.00416.95
8.2.240.0110.00418.51
8.2.230.0040.00420.94
8.2.220.0030.00624.06
8.2.210.0110.00426.77
8.2.200.0040.00418.42
8.2.190.0070.01116.63
8.2.180.0090.00625.92
8.2.170.0140.00418.84
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0050.00226.16
8.2.110.0090.00020.35
8.2.100.0070.00417.75
8.2.90.0040.00417.88
8.2.80.0080.00018.76
8.2.70.0090.00017.74
8.2.60.0000.00817.63
8.2.50.0040.00418.05
8.2.40.0030.00718.26
8.2.30.0000.00718.08
8.2.20.0000.00719.20
8.2.10.0040.00418.01
8.2.00.0000.00719.23
8.1.330.0130.00522.02
8.1.320.0110.01016.15
8.1.310.0050.00318.34
8.1.300.0000.00818.01
8.1.290.0030.00718.88
8.1.280.0110.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0120.00022.13
8.1.230.0040.00720.86
8.1.220.0000.00818.64
8.1.210.0090.00018.77
8.1.200.0090.00017.25
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00317.62
8.1.160.0000.00718.90
8.1.150.0000.00718.70
8.1.140.0060.00317.48
8.1.130.0030.00318.94
8.1.120.0040.00417.44
8.1.110.0070.00017.48
8.1.100.0040.00417.48
8.1.90.0050.00517.47
8.1.80.0080.00817.43
8.1.70.0110.00517.43
8.1.60.0090.00917.58
8.1.50.0060.00617.57
8.1.40.0090.00917.49
8.1.30.0160.00317.59
8.1.20.0180.00017.52
8.1.10.0130.00517.46
8.1.00.0130.00517.41
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0000.00716.91
8.0.260.0000.00618.48
8.0.250.0040.00417.06
8.0.240.0000.00616.99
8.0.230.0050.00317.06
8.0.220.0150.00016.93
8.0.210.0130.00316.90
8.0.200.0140.00317.07
8.0.190.0120.00316.95
8.0.180.0090.00616.92
8.0.170.0090.00516.92
8.0.160.0120.00416.98
8.0.150.0120.00416.85
8.0.140.0130.00216.81
8.0.130.0120.00416.80
8.0.120.0080.00816.93
8.0.110.0070.00716.87
8.0.100.0150.00316.81
8.0.90.0090.00616.89
8.0.80.0160.00016.83
8.0.70.0120.00416.84
8.0.60.0070.00416.91
8.0.50.0030.00916.98
8.0.30.0120.00316.80
8.0.20.0130.00016.95
8.0.10.0110.00316.93
7.4.330.0000.00515.55
7.4.320.0030.00316.61
7.4.300.0150.00016.61
7.4.290.0070.00716.60
7.4.280.0080.00416.51
7.4.270.0120.00616.40
7.4.260.0080.00416.48
7.4.250.0110.00616.59
7.4.240.0100.00516.54
7.4.230.0140.00016.35
7.4.220.0110.00416.50
7.4.210.0060.00616.58
7.4.200.0120.00016.50
7.4.190.0070.00716.55
7.4.180.0140.00016.67
7.4.160.0100.00516.60
7.4.150.0150.00016.47
7.4.140.0070.00716.41
7.4.130.0070.00716.37
7.4.120.0090.00416.44
7.4.110.0120.00216.38
7.4.100.0090.00616.42
7.4.90.0120.00216.42
7.4.80.0040.00916.54
7.4.70.0090.00516.52
7.4.60.0070.00716.44
7.4.50.0000.01316.23
7.4.40.0090.00416.45
7.4.30.0140.00016.45
7.4.20.0050.00916.42
7.4.10.0110.00316.42
7.4.00.0110.00316.48

preferences:
32.01 ms | 403 KiB | 5 Q