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.4.140.0120.01117.40
8.4.130.0120.00817.87
8.4.120.0130.00720.55
8.4.110.0100.01118.72
8.4.100.0140.00717.75
8.4.90.0150.00517.55
8.4.80.0080.01217.70
8.4.70.0080.01318.13
8.4.60.0090.01118.97
8.4.50.0050.00318.84
8.4.40.0130.00617.93
8.4.30.0120.00320.61
8.4.20.0150.00419.45
8.4.10.0030.00623.88
8.3.270.0120.00816.73
8.3.260.0100.00616.70
8.3.250.0080.00918.91
8.3.240.0100.01016.57
8.3.230.0080.01116.46
8.3.220.0110.00717.34
8.3.210.0130.00716.50
8.3.200.0050.00416.42
8.3.190.0070.00317.18
8.3.180.0040.00418.01
8.3.170.0090.00917.20
8.3.160.0070.01116.56
8.3.150.0090.00918.90
8.3.140.0040.00416.55
8.3.130.0150.00418.19
8.3.120.0100.00020.72
8.3.110.0080.01118.68
8.3.100.0150.00620.31
8.3.90.0160.00321.64
8.3.80.0150.00417.59
8.3.70.0180.00416.37
8.3.60.0160.00516.42
8.3.50.0160.00317.31
8.3.40.0160.00418.90
8.3.30.0140.00418.11
8.3.20.0090.00420.84
8.3.10.0070.00720.89
8.3.00.0110.00821.70
8.2.290.0080.00920.22
8.2.280.0090.00822.51
8.2.270.0060.01319.07
8.2.260.0090.00618.90
8.2.250.0130.00716.84
8.2.240.0080.00016.96
8.2.230.0140.00319.38
8.2.220.0140.00526.97
8.2.210.0160.00121.55
8.2.200.0100.00416.69
8.2.190.0140.00716.48
8.2.180.0130.00721.19
8.2.170.0160.00418.27
8.2.160.0150.00220.28
8.2.150.0130.00321.63
8.2.140.0130.00321.08
8.2.130.0100.00421.76
8.2.120.0100.00521.83
8.2.110.0100.00519.98
8.2.100.0180.00717.95
8.2.90.0200.00318.84
8.2.80.0200.00417.86
8.2.70.0170.00617.73
8.2.60.0180.00517.96
8.2.50.0200.00518.00
8.2.40.0110.00618.71
8.2.30.0130.00718.02
8.2.20.0150.00618.41
8.2.10.0140.00517.95
8.2.00.0120.00518.12
8.1.330.0110.01118.16
8.1.320.0060.01018.06
8.1.310.0090.00618.36
8.1.300.0040.01518.36
8.1.290.0060.00923.42
8.1.280.0130.00420.90
8.1.270.0110.00320.90
8.1.260.0110.00421.86
8.1.250.0120.00222.71
8.1.240.0110.00519.00
8.1.230.0130.00519.52
8.1.220.0140.00617.80
8.1.210.0160.00718.20
8.1.200.0190.00217.68
8.1.190.0130.00917.56
8.1.180.0170.00517.88
8.1.170.0130.00617.97
8.1.160.0120.00718.13
8.1.150.0150.00418.00
8.1.140.0140.00517.64
8.1.130.0110.00517.89
8.1.120.0140.00418.02
8.1.110.0100.00818.01
8.1.100.0110.00718.00
8.1.90.0150.00317.97
8.1.80.0130.00517.98
8.1.70.0140.00417.93
8.1.60.0120.00618.07
8.1.50.0160.00518.05
8.1.40.0140.00618.03
8.1.30.0170.00418.08
8.1.20.0130.00718.12
8.1.10.0150.00418.03
8.1.00.0150.00417.90
8.0.300.0130.00518.30
8.0.290.0160.00317.23
8.0.280.0140.00417.81
8.0.270.0190.00317.25
8.0.260.0120.00417.41
8.0.250.0120.00417.55
8.0.240.0130.00417.55
8.0.230.0130.00417.46
8.0.220.0120.00317.44
8.0.210.0100.00617.46
8.0.200.0130.00317.50
8.0.190.0130.00317.51
8.0.180.0110.00417.46
8.0.170.0120.00417.53
8.0.160.0110.00517.52
8.0.150.0110.00617.42
8.0.140.0120.00617.49
8.0.130.0150.00317.43
8.0.120.0140.00417.43
8.0.110.0150.00317.37
8.0.100.0130.00417.42
8.0.90.0130.00317.39
8.0.80.0100.00717.42
8.0.70.0140.00317.42
8.0.60.0120.00517.43
8.0.50.0110.00417.42
8.0.30.0140.00317.39
8.0.20.0120.00517.47
8.0.10.0120.00417.58

preferences:
29.45 ms | 403 KiB | 5 Q