3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = [ ['target_id' => 123], ['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) { return ($a['target_id'] == $b['target_id']); }));

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.0070.01416.50
8.3.50.0080.00616.36
8.3.40.0040.01118.67
8.3.30.0090.00618.50
8.3.20.0050.00320.30
8.3.10.0080.00021.73
8.3.00.0050.00319.38
8.2.180.0140.00316.63
8.2.170.0140.00022.96
8.2.160.0070.01020.33
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00021.13
8.2.120.0060.00326.35
8.2.110.0000.00922.30
8.2.100.0080.00317.84
8.2.90.0040.00418.95
8.2.80.0050.00317.97
8.2.70.0030.00717.63
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0040.00420.68
8.2.30.0040.00420.97
8.2.20.0040.00418.18
8.2.10.0000.00718.00
8.2.00.0070.00018.12
8.1.280.0120.00325.92
8.1.270.0070.00023.96
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00323.88
8.1.230.0000.01117.89
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00917.35
8.1.190.0060.00317.35
8.1.180.0020.00518.10
8.1.170.0050.00320.45
8.1.160.0000.00818.93
8.1.150.0000.00720.72
8.1.140.0020.00519.57
8.1.130.0030.00318.81
8.1.120.0030.00517.49
8.1.110.0000.00817.44
8.1.100.0000.00817.45
8.1.90.0070.00017.34
8.1.80.0070.00017.46
8.1.70.0000.00717.47
8.1.60.0030.00617.55
8.1.50.0050.00317.47
8.1.40.0060.00317.44
8.1.30.0040.00817.54
8.1.20.0040.00417.68
8.1.10.0030.00517.55
8.1.00.0040.00417.50
8.0.300.0070.00018.77
8.0.290.0070.00016.88
8.0.280.0030.00318.36
8.0.270.0040.00417.16
8.0.260.0040.00716.81
8.0.250.0070.00016.99
8.0.240.0020.00516.84
8.0.230.0000.00716.99
8.0.220.0030.00316.88
8.0.210.0030.00316.90
8.0.200.0000.00717.07
8.0.190.0030.00717.03
8.0.180.0070.00016.96
8.0.170.0030.00616.80
8.0.160.0050.00316.93
8.0.150.0050.00216.88
8.0.140.0050.00516.90
8.0.130.0000.00513.31
8.0.120.0040.00416.93
8.0.110.0040.00416.84
8.0.100.0030.00316.82
8.0.90.0070.00016.84
8.0.80.0110.00816.84
8.0.70.0050.00216.98
8.0.60.0060.00316.79
8.0.50.0030.00516.87
8.0.30.0110.00517.17
8.0.20.0090.01017.40
8.0.10.0000.00817.01
8.0.00.0000.01716.87
7.4.330.0000.00615.55
7.4.320.0000.00616.66
7.4.300.0060.00016.42
7.4.290.0060.00316.50
7.4.280.0000.00816.42
7.4.270.0000.00716.50
7.4.260.0000.00716.50
7.4.250.0000.00716.46
7.4.240.0050.00316.61
7.4.230.0030.00316.30
7.4.220.0080.00916.48
7.4.210.0140.00016.46
7.4.200.0030.00316.36
7.4.160.0090.00916.44
7.4.150.0130.00417.40
7.4.140.0130.00817.86
7.4.130.0170.00716.48
7.4.120.0100.00916.46
7.3.330.0020.00313.30
7.3.320.0060.00013.34
7.3.310.0030.00316.19
7.3.300.0070.00016.31
7.3.290.0050.00916.21
7.3.280.0120.00916.21
7.3.270.0170.00017.40
7.3.260.0140.00416.38
7.3.250.0120.00516.29
7.3.240.0120.00516.41

preferences:
47.32 ms | 400 KiB | 5 Q