3v4l.org

run code in 300+ PHP versions simultaneously
<?php function key_compare_func($a, $b) { var_dump($a, $b );exit; if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "green", "yellow", "red"); $result = array_diff_uassoc($array1, $array2, "key_compare_func"); print_r($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.3.60.0070.01118.30
8.3.50.0070.00716.61
8.3.40.0110.00419.02
8.3.30.0140.00018.67
8.3.20.0080.00021.87
8.3.10.0000.00821.88
8.3.00.0060.00319.26
8.2.180.0150.00018.14
8.2.170.0070.00722.96
8.2.160.0160.00021.99
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00420.56
8.2.120.0040.00426.35
8.2.110.0000.00920.35
8.2.100.0110.00017.72
8.2.90.0060.00319.05
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0100.00017.80
8.2.50.0080.00018.10
8.2.40.0040.00420.58
8.2.30.0040.00419.10
8.2.20.0030.00617.99
8.2.10.0000.00818.12
8.2.00.0040.00417.93
8.1.280.0100.01025.92
8.1.270.0080.00023.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0040.00723.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0030.00617.23
8.1.180.0080.00018.10
8.1.170.0000.00818.59
8.1.160.0020.00518.75
8.1.150.0030.00618.82
8.1.140.0070.00019.56
8.1.130.0040.00418.88
8.1.120.0050.00217.38
8.1.110.0040.00417.29
8.1.100.0080.00017.45
8.1.90.0070.00017.42
8.1.80.0070.00317.40
8.1.70.0030.00317.29
8.1.60.0040.00417.52
8.1.50.0040.00417.59
8.1.40.0080.00017.53
8.1.30.0040.00417.57
8.1.20.0050.00317.71
8.1.10.0000.00717.53
8.1.00.0040.00417.42
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0030.00317.13
8.0.260.0000.00716.86
8.0.250.0030.00317.00
8.0.240.0000.00816.84
8.0.230.0000.00716.98
8.0.220.0070.00016.79
8.0.210.0000.00816.85
8.0.200.0000.00616.88
8.0.190.0050.00516.99
8.0.180.0040.00416.82
8.0.170.0050.00316.96
8.0.160.0060.00317.00
8.0.150.0000.00816.78
8.0.140.0040.00416.87
8.0.130.0030.00313.38
8.0.120.0040.00416.82
8.0.110.0000.00716.76
8.0.100.0000.00716.85
8.0.90.0040.00416.70
8.0.80.0110.00716.87
8.0.70.0000.00716.79
8.0.60.0080.00016.76
8.0.50.0040.00416.73
8.0.30.0090.00717.04
8.0.20.0070.01117.40
8.0.10.0000.00817.04
8.0.00.0130.00517.03
7.4.330.0000.00515.55
7.4.320.0030.00316.55
7.4.300.0000.00616.44
7.4.290.0000.00716.44
7.4.280.0040.00416.44
7.4.270.0040.00316.37
7.4.260.0000.00613.20
7.4.250.0050.00316.37
7.4.240.0040.00416.43
7.4.230.0000.00716.57
7.4.220.0070.01116.53
7.4.210.0110.00316.41
7.4.200.0000.00716.45
7.4.160.0120.00816.37
7.4.150.0060.01317.40
7.4.140.0090.01117.86
7.4.130.0090.00916.62
7.4.120.0080.01116.45
7.4.110.0110.00716.43
7.4.100.0080.00816.23
7.4.90.0170.00316.28
7.4.80.0120.00619.39
7.4.70.0060.01216.50
7.4.60.0060.00916.38
7.4.50.0020.01216.39
7.4.40.0120.00316.46
7.4.30.0070.01016.50
7.4.00.0070.00714.91
7.3.330.0020.00213.21
7.3.320.0000.00513.04
7.3.310.0000.00716.20
7.3.300.0000.00616.20
7.3.290.0080.00616.22
7.3.280.0080.00816.21
7.3.270.0040.01517.40
7.3.260.0090.00816.27
7.3.250.0110.01016.18
7.3.240.0100.00916.34
7.3.230.0040.01616.19
7.3.210.0110.00716.36
7.3.200.0060.01616.26
7.3.190.0100.00716.18
7.3.180.0060.01016.24
7.3.170.0120.00616.19
7.3.160.0090.00616.43
7.2.330.0030.01716.52
7.2.320.0160.00616.55
7.2.310.0070.01016.31
7.2.300.0090.00616.39
7.2.290.0080.01516.43
7.2.110.0200.00616.55
7.2.60.0220.00616.64
7.2.50.0030.01016.82
7.2.00.0110.00019.36
7.1.200.0050.00515.41
7.1.70.0000.01217.07
7.1.60.0530.01033.18
7.1.50.0600.01032.90
7.1.40.0530.01332.63
7.1.30.0700.01332.65
7.1.20.0870.01332.82
7.1.10.0700.01014.62
7.1.00.0430.00714.59
7.0.200.0870.01715.10
7.0.190.0530.00714.54
7.0.180.0500.01314.57
7.0.170.0870.01314.36
7.0.160.0570.00714.57
7.0.150.0370.01714.25
7.0.140.0700.00714.50
7.0.130.0500.01014.46
7.0.120.0970.01014.48
7.0.110.0630.01714.29
7.0.100.0400.00714.36
7.0.90.0630.02014.38
7.0.80.0470.01314.16
7.0.70.0530.01314.21
7.0.60.0200.01314.31
7.0.50.0430.00714.34
7.0.40.0630.01314.54
7.0.30.0600.01014.48
7.0.20.0600.00714.52
7.0.10.0500.01314.36
7.0.00.0500.00714.45

preferences:
53.31 ms | 401 KiB | 5 Q