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) { return -1; }));

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.0150.00016.50
8.3.50.0100.00316.26
8.3.40.0160.00018.62
8.3.30.0090.00618.59
8.3.20.0040.00420.21
8.3.10.0090.00021.90
8.3.00.0060.00319.25
8.2.180.0090.00616.75
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0070.00021.06
8.2.120.0040.00426.35
8.2.110.0120.00019.20
8.2.100.0040.00718.03
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0070.00417.63
8.2.60.0060.00317.80
8.2.50.0000.00818.10
8.2.40.0040.00420.59
8.2.30.0100.00020.95
8.2.20.0040.00418.04
8.2.10.0040.00418.18
8.2.00.0070.00018.23
8.1.280.0170.00025.92
8.1.270.0000.00923.61
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00623.84
8.1.230.0070.00419.01
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.34
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0000.00820.24
8.1.160.0040.00419.01
8.1.150.0040.00420.54
8.1.140.0040.00419.58
8.1.130.0050.00218.81
8.1.120.0070.00017.47
8.1.110.0040.00417.50
8.1.100.0000.00817.48
8.1.90.0040.00417.43
8.1.80.0070.00017.35
8.1.70.0040.00417.45
8.1.60.0050.00317.57
8.1.50.0000.00717.48
8.1.40.0040.00417.41
8.1.30.0060.00317.61
8.1.20.0080.00017.55
8.1.10.0000.00717.45
8.1.00.0000.00717.25
8.0.300.0020.00518.77
8.0.290.0000.00716.58
8.0.280.0060.00018.38
8.0.270.0050.00517.20
8.0.260.0070.00016.67
8.0.250.0000.00716.80
8.0.240.0000.00716.79
8.0.230.0030.00316.91
8.0.220.0030.00316.82
8.0.210.0030.00316.86
8.0.200.0000.00717.02
8.0.190.0040.00416.99
8.0.180.0000.00816.91
8.0.170.0030.00516.98
8.0.160.0030.00516.86
8.0.150.0040.00416.80
8.0.140.0030.00616.78
8.0.130.0000.00613.26
8.0.120.0040.00416.84
8.0.110.0000.00716.67
8.0.100.0070.00016.72
8.0.90.0000.00716.78
8.0.80.0030.01016.84
8.0.70.0050.00316.93
8.0.60.0050.00216.70
8.0.50.0000.00816.86
8.0.30.0050.01117.14
8.0.20.0090.00917.40
8.0.10.0050.00316.84
8.0.00.0170.00316.64
7.4.330.0020.00215.55
7.4.320.0060.00016.37
7.4.300.0040.00416.45
7.4.290.0080.00316.46
7.4.280.0040.00416.64
7.4.270.0040.00416.48
7.4.260.0070.00016.48
7.4.250.0030.00516.52
7.4.240.0050.00216.50
7.4.230.0000.00716.61
7.4.220.0040.01416.55
7.4.210.0070.00716.46
7.4.200.0030.00316.69
7.4.160.0060.01116.53
7.4.150.0120.00417.40
7.4.140.0070.01317.86
7.4.130.0090.00916.34
7.4.120.0110.00716.48
7.3.330.0030.00313.20
7.3.320.0000.00513.30
7.3.310.0000.00716.19
7.3.300.0040.00416.23
7.3.290.0200.01016.21
7.3.280.0110.00816.20
7.3.270.0130.00417.40
7.3.260.0060.01116.36
7.3.250.0090.00816.34
7.3.240.0100.00716.53

preferences:
40.69 ms | 400 KiB | 5 Q