3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = [ ['target_id' => 124], ['target_id' => 234], ['target_id' => 345], ]; $a2 = [ ['target_id' => 123, 'type' => 'node'], ['target_id' => 234, 'type' => 'node'], ['target_id' => 345, 'type' => 'node'], ]; var_dump(array_udiff($a1, $a2, function ($a, $b) { if ($a['target_id'] == $b['target_id']) { return -1; } return 0; }));

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.0120.00316.75
8.3.50.0080.00816.34
8.3.40.0040.01118.79
8.3.30.0110.00418.63
8.3.20.0040.00420.21
8.3.10.0000.00921.76
8.3.00.0090.00019.38
8.2.180.0120.00618.25
8.2.170.0040.01122.96
8.2.160.0070.00720.32
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00721.00
8.2.120.0080.00026.35
8.2.110.0070.00320.86
8.2.100.0040.00817.84
8.2.90.0000.00819.24
8.2.80.0080.00018.05
8.2.70.0060.00317.63
8.2.60.0080.00018.03
8.2.50.0030.00618.10
8.2.40.0000.00820.61
8.2.30.0050.00221.16
8.2.20.0070.00018.01
8.2.10.0050.00318.01
8.2.00.0000.00718.12
8.1.280.0070.01125.92
8.1.270.0070.00023.96
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00021.24
8.1.230.0080.00419.67
8.1.220.0030.00617.77
8.1.210.0040.00418.77
8.1.200.0040.00417.36
8.1.190.0040.00717.25
8.1.180.0100.00018.10
8.1.170.0040.00420.43
8.1.160.0000.00719.00
8.1.150.0040.00420.73
8.1.140.0000.00719.52
8.1.130.0030.00318.95
8.1.120.0080.00017.36
8.1.110.0000.00717.47
8.1.100.0040.00417.32
8.1.90.0040.00417.50
8.1.80.0030.00317.43
8.1.70.0030.00317.53
8.1.60.0080.00017.49
8.1.50.0000.00817.46
8.1.40.0000.00817.51
8.1.30.0000.00817.64
8.1.20.0000.00817.61
8.1.10.0000.00717.50
8.1.00.0040.00417.30
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0000.00718.40
8.0.270.0040.00417.19
8.0.260.0000.00816.84
8.0.250.0030.00316.88
8.0.240.0000.00716.81
8.0.230.0030.00316.92
8.0.220.0000.00716.84
8.0.210.0000.00716.67
8.0.200.0030.00616.96
8.0.190.0000.01016.80
8.0.180.0050.00216.90
8.0.170.0050.00316.90
8.0.160.0030.00616.98
8.0.150.0000.00716.73
8.0.140.0030.00716.72
8.0.130.0030.00313.32
8.0.120.0000.00716.82
8.0.110.0040.00416.76
8.0.100.0040.00417.01
8.0.90.0050.00216.80
8.0.80.0110.00616.83
8.0.70.0000.00716.77
8.0.60.0000.00816.87
8.0.50.0000.00816.78
8.0.30.0080.00616.95
8.0.20.0130.00517.40
8.0.10.0000.00716.93
8.0.00.0030.01416.64
7.4.330.0030.00315.55
7.4.320.0000.00716.61
7.4.300.0030.00316.48
7.4.290.0090.00316.46
7.4.280.0080.00016.50
7.4.270.0000.00716.50
7.4.260.0040.00416.50
7.4.250.0070.00016.46
7.4.240.0050.00216.61
7.4.230.0030.00316.40
7.4.220.0140.00316.54
7.4.210.0070.00716.51
7.4.200.0080.00016.62
7.4.160.0100.00916.46
7.4.150.0100.00717.40
7.4.140.0080.01317.86
7.4.130.0090.00916.45
7.4.120.0050.01216.53
7.3.330.0050.00013.17
7.3.320.0000.00613.23
7.3.310.0000.00716.15
7.3.300.0070.00016.21
7.3.290.0100.00616.22
7.3.280.0080.00716.24
7.3.270.0290.02317.40
7.3.260.0100.00816.35
7.3.250.0120.00516.49
7.3.240.0070.01016.40

preferences:
28.76 ms | 401 KiB | 5 Q