3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ ['rank' => '579', 'id' => '1'], ['rank' => '251', 'id' => '2'], ]; $b = [ ['size' => 'S', 'status' => 'A', 'id' => '1'], ['size' => 'L', 'status' => 'A', 'id' => '2'], ]; $result = []; foreach (array_merge($a, $b) as $row) { $result[$row['id']] = $row + ($result[$row['id']] ?? []); } var_export(array_values($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.3.60.0110.00716.49
8.3.50.0090.00618.13
8.3.40.0140.00320.17
8.3.30.0080.00818.84
8.3.20.0050.00324.18
8.3.10.0000.00724.66
8.3.00.0070.00726.16
8.2.180.0150.00625.92
8.2.170.0110.00418.91
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0070.00026.16
8.2.110.0030.00722.24
8.2.100.0180.00718.17
8.2.90.0210.00219.58
8.2.80.0180.00618.03
8.2.70.0160.00617.85
8.2.60.0170.00418.19
8.2.50.0150.00818.26
8.2.40.0090.00819.32
8.2.30.0130.00718.29
8.2.20.0150.00618.87
8.2.10.0150.00518.10
8.2.00.0110.00618.28
8.1.280.0110.00425.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00620.88
8.1.230.0100.00720.73
8.1.220.0150.00618.09
8.1.210.0120.01018.73
8.1.200.0180.00217.96
8.1.190.0130.00817.85
8.1.180.0160.00418.27
8.1.170.0140.00418.47
8.1.160.0120.00718.70
8.1.150.0140.00418.51
8.1.140.0120.00617.82
8.1.130.0100.00518.10
8.1.120.0140.00418.15
8.1.110.0100.00718.17
8.1.100.0110.00618.16
8.1.90.0140.00318.10
8.1.80.0130.00518.13
8.1.70.0130.00418.09
8.1.60.0110.00618.23
8.1.50.0120.00618.21
8.1.40.0150.00518.19
8.1.30.0170.00318.25
8.1.20.0130.00718.27
8.1.10.0140.00418.16
8.1.00.0130.00518.08
8.0.300.0120.00419.26
8.0.290.0140.00417.60
8.0.280.0160.00218.47
8.0.270.0190.00417.69
8.0.260.0090.00517.62
8.0.250.0110.00417.71
8.0.240.0110.00417.72
8.0.230.0120.00317.68
8.0.220.0110.00317.61
8.0.210.0100.00517.66
8.0.200.0120.00417.65
8.0.190.0120.00417.69
8.0.180.0090.00517.63
8.0.170.0100.00517.69
8.0.160.0100.00517.68
8.0.150.0100.00617.59
8.0.140.0110.00617.66
8.0.130.0150.00317.60
8.0.120.0130.00317.62
8.0.110.0140.00217.60
8.0.100.0120.00417.63
8.0.90.0130.00217.62
8.0.80.0090.00717.62
8.0.70.0130.00317.60
8.0.60.0110.00517.62
8.0.50.0090.00517.61
8.0.30.0120.00417.60
8.0.20.0120.00417.66
8.0.10.0120.00317.72

preferences:
31.23 ms | 400 KiB | 5 Q