3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1 = [ (object) ['id' => 100, 'name' => 'Muhammad'], (object) ['id' => 22, 'name' => 'Ibrahim'], (object) ['id' => 101, 'name' => 'Sumayyah'] ]; $array2 = [ (object) ['id' => 100, 'name' => 'Muhammad'], (object) ['id' => 103, 'name' => 'Yusuf'] ]; $result = array_merge($array1, array_udiff($array2, $array1, fn($a, $b) => $a <=> $b)); sort($result); var_export($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.5.90.0090.00817.00
8.5.80.0130.00916.93
8.5.70.0040.00518.52
8.5.60.0100.00816.87
8.5.50.0130.00416.47
8.5.30.0110.00719.13
8.5.20.0090.00819.41
8.5.10.0100.00620.09
8.5.00.0160.00720.14
8.4.230.0070.00319.52
8.4.220.0060.00419.53
8.4.210.0080.01119.50
8.4.180.0160.01219.71
8.4.170.0070.01020.48
8.4.160.0130.00923.76
8.4.150.0060.00717.70
8.4.140.0170.01017.41
8.4.130.0130.00718.42
8.4.120.0120.00824.21
8.4.110.0040.00618.95
8.4.100.0110.01018.81
8.4.90.0120.00820.54
8.4.80.0090.01118.85
8.4.70.0120.01018.11
8.4.60.0070.00918.92
8.4.50.0130.00718.70
8.4.40.0130.00717.73
8.4.30.0070.01318.75
8.4.20.0160.00317.57
8.4.10.0030.00623.70
8.3.320.0070.01018.56
8.3.310.0150.00518.69
8.3.300.0130.00720.84
8.3.290.0080.01120.97
8.3.280.0150.00618.49
8.3.270.0110.00816.51
8.3.260.0040.00516.70
8.3.250.0110.00819.21
8.3.240.0090.00816.96
8.3.230.0110.00916.88
8.3.220.0030.00418.84
8.3.210.0160.00316.71
8.3.200.0050.00416.57
8.3.190.0100.00819.01
8.3.180.0120.00717.09
8.3.170.0120.00619.04
8.3.160.0060.01316.71
8.3.150.0090.00917.11
8.3.140.0000.00916.58
8.3.130.0040.00418.33
8.3.120.0040.00420.86
8.3.110.0090.00016.50
8.3.100.0100.00724.06
8.3.90.0090.00026.77
8.3.80.0060.00316.48
8.3.70.0070.01016.63
8.3.60.0110.00416.38
8.3.50.0160.00018.46
8.3.40.0090.00620.34
8.3.30.0120.00318.71
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0030.00626.16
8.2.320.0130.00618.18
8.2.310.0100.00618.09
8.2.300.0110.00822.13
8.2.290.0090.00620.57
8.2.280.0090.01218.24
8.2.270.0120.00617.29
8.2.260.0060.00316.84
8.2.250.0100.00316.57
8.2.240.0000.00917.12
8.2.230.0110.00420.94
8.2.220.0090.00037.54
8.2.210.0070.00026.77
8.2.200.0060.00318.29
8.2.190.0080.00816.75
8.2.180.0090.01225.92
8.2.170.0150.00018.99
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00226.16
8.2.110.0060.00322.24
8.2.100.0130.00317.91
8.2.90.0000.00817.88
8.2.80.0050.00318.73
8.2.70.0050.00317.75
8.2.60.0080.00017.63
8.2.50.0040.00417.93
8.2.40.0000.00719.43
8.2.30.0000.00718.06
8.2.20.0030.00519.23
8.2.10.0040.00418.05
8.2.00.0040.00419.15
8.1.340.0090.01121.73
8.1.330.0130.00621.82
8.1.320.0110.00718.11
8.1.310.0050.00516.13
8.1.300.0060.01018.29
8.1.290.0030.00630.84
8.1.280.0070.01425.92
8.1.270.0070.00724.66
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00320.29
8.1.230.0040.00817.64
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00717.35
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0000.00917.62
8.1.160.0000.00719.07
8.1.150.0050.00218.68
8.1.140.0000.00817.44
8.1.130.0030.00318.88
8.1.120.0070.00017.36
8.1.110.0030.00517.43
8.1.100.0110.00016.63
8.1.90.0050.00917.43
8.1.80.0070.00717.43
8.1.70.0060.01017.36
8.1.60.0080.00817.44
8.1.50.0070.00717.53
8.1.40.0100.00517.50
8.1.30.0140.00217.53
8.1.20.0050.00917.37
8.1.10.0070.00717.39
8.1.00.0090.00617.03
8.0.300.0040.00418.93
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0030.00316.91
8.0.260.0030.00318.45
8.0.250.0050.00216.96
8.0.240.0030.00316.97
8.0.230.0120.00016.76
8.0.220.0130.00016.84
8.0.210.0030.00716.76
8.0.200.0030.01016.71
8.0.190.0120.00016.87
8.0.180.0060.00616.89
8.0.170.0130.00016.90
8.0.160.0080.00516.84
8.0.150.0070.00516.64
8.0.140.0090.00516.82
8.0.130.0040.00716.52
8.0.120.0120.00316.83
8.0.110.0140.00016.89
8.0.100.0050.00816.93
8.0.90.0130.00016.91
8.0.80.0080.00616.94
8.0.70.0080.00616.83
8.0.60.0090.00316.91
8.0.50.0060.00716.80
8.0.30.0110.00316.95
8.0.20.0050.00616.88
8.0.10.0070.00516.87
7.4.330.0020.00215.55
7.4.320.0030.00316.62
7.4.300.0080.00416.41
7.4.290.0030.00716.63
7.4.280.0030.00615.95
7.4.270.0100.00016.43
7.4.260.0000.01116.46
7.4.250.0050.00416.57
7.4.240.0040.00716.38
7.4.230.0050.00516.59
7.4.220.0060.00316.38
7.4.210.0080.00316.30
7.4.200.0110.00016.45
7.4.190.0100.00316.62
7.4.180.0090.00516.68
7.4.160.0110.00416.54
7.4.150.0130.00316.57
7.4.140.0000.01416.44
7.4.130.0050.01016.52
7.4.120.0150.00016.50
7.4.110.0170.00016.47
7.4.100.0160.00016.51
7.4.90.0070.00716.51
7.4.80.0120.00316.47
7.4.70.0130.00316.41
7.4.60.0160.00016.55
7.4.50.0110.00616.38
7.4.40.0120.00616.39
7.4.30.0080.00816.41
7.4.20.0140.00316.35
7.4.10.0060.01216.57
7.4.00.0090.00716.55

preferences:
50.27 ms | 1346 KiB | 5 Q