3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $b = array("a" => "green", "yellow", "red"); $c = array("c" => "blue"); print_r(array_diff_ukey($a, $b, $c, function($a, $b){ if ($a == $b) { return 0; } return $a > $b ? 1 : -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.0100.01016.63
8.3.50.0120.00421.98
8.3.40.0030.01318.49
8.3.30.0110.00319.09
8.3.20.0030.00720.34
8.3.10.0050.00320.36
8.3.00.0000.00819.00
8.2.180.0090.00916.63
8.2.170.0060.00922.96
8.2.160.0100.00320.43
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0050.00220.88
8.2.110.0060.00321.12
8.2.100.0070.00417.78
8.2.90.0090.00017.84
8.2.80.0000.00817.97
8.2.70.0030.00717.48
8.2.60.0070.00318.05
8.2.50.0040.00418.07
8.2.40.0070.00018.22
8.2.30.0000.00919.34
8.2.20.0040.00417.73
8.2.10.0000.00718.23
8.2.00.0050.00317.73
8.1.280.0080.00825.92
8.1.270.0050.00323.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.48
8.1.230.0080.00420.80
8.1.220.0030.00617.74
8.1.210.0030.00618.91
8.1.200.0060.00317.21
8.1.190.0050.00517.36
8.1.180.0050.00318.10
8.1.170.0080.00018.64
8.1.160.0030.00522.06
8.1.150.0020.00518.81
8.1.140.0040.00417.30
8.1.130.0030.00317.77
8.1.120.0000.00717.48
8.1.110.0000.00817.44
8.1.100.0040.00417.38
8.1.90.0050.00217.37
8.1.80.0030.00317.44
8.1.70.0000.00717.41
8.1.60.0060.00617.51
8.1.50.0040.00417.59
8.1.40.0000.00717.39
8.1.30.0040.00417.66
8.1.20.0030.00517.57
8.1.10.0000.00817.42
8.1.00.0070.00017.35
8.0.300.0050.00219.95
8.0.290.0040.00416.75
8.0.280.0070.00018.47
8.0.270.0100.00017.24
8.0.260.0080.00017.12
8.0.250.0070.00016.80
8.0.240.0030.00516.88
8.0.230.0040.00416.83
8.0.220.0030.00316.90
8.0.210.0030.00316.89
8.0.200.0040.00416.93
8.0.190.0000.00716.96
8.0.180.0070.00016.77
8.0.170.0040.00416.94
8.0.160.0000.00716.95
8.0.150.0070.00016.86
8.0.140.0070.00416.75
8.0.130.0030.00313.35
8.0.120.0040.00416.85
8.0.110.0080.00016.86
8.0.100.0050.00316.66
8.0.90.0050.00216.71
8.0.80.0130.00716.84
8.0.70.0040.00416.95
8.0.60.0000.00716.95
8.0.50.0040.00416.82
8.0.30.0130.00816.89
8.0.20.0140.00517.40
8.0.10.0040.00416.84
8.0.00.0100.00716.73
7.4.330.0020.00215.09
7.4.320.0020.00516.51
7.4.300.0030.00316.60
7.4.290.0000.00716.50
7.4.280.0030.00816.48
7.4.270.0040.00416.41
7.4.260.0040.00416.40
7.4.250.0000.00816.58
7.4.240.0030.00316.63
7.4.230.0000.00716.66
7.4.220.0110.00616.57
7.4.210.0090.00616.51
7.4.200.0040.00416.62
7.4.160.0120.00316.27
7.4.150.0140.00617.40
7.4.140.0140.00617.86
7.4.130.0100.00716.47
7.4.120.0070.01016.45
7.4.110.0070.01016.34
7.4.100.0060.01216.50
7.4.90.0040.01416.67
7.4.80.0080.01419.39
7.4.70.0080.00816.66
7.4.60.0090.00916.36
7.4.50.0050.00316.56
7.4.40.0030.01416.68
7.4.30.0030.01216.33
7.4.00.0050.01214.96
7.3.330.0050.00013.16
7.3.320.0030.00313.29
7.3.310.0080.00016.11
7.3.300.0030.00316.30
7.3.290.0060.01316.40
7.3.280.0060.01316.27
7.3.270.0090.00917.40
7.3.260.0170.00016.55
7.3.250.0120.00516.46
7.3.240.0030.01316.29
7.3.230.0080.00816.39
7.3.210.0150.00316.65
7.3.200.0120.00419.39
7.3.190.0100.00716.58
7.3.180.0100.00716.37
7.3.170.0110.00516.41
7.3.160.0030.01316.42
7.3.120.0060.01114.93
7.3.110.0020.01414.75
7.3.100.0050.01014.84
7.3.90.0070.00414.78
7.3.80.0080.00314.68
7.3.70.0060.01014.59
7.3.60.0070.00814.75
7.3.50.0070.00914.84
7.3.40.0110.00414.72
7.3.30.0070.00914.69
7.3.20.0060.00916.57
7.3.10.0090.00416.60
7.3.00.0010.01116.72
7.2.330.0120.00616.59
7.2.320.0100.00716.35
7.2.310.0030.01416.32
7.2.300.0100.00716.75
7.2.290.0080.00816.65
7.2.250.0090.01115.09
7.2.240.0080.00814.95
7.2.230.0080.00714.84
7.2.220.0070.01014.98
7.2.210.0050.01015.07
7.2.200.0100.00615.02
7.2.190.0070.00714.84
7.2.180.0090.00514.84
7.2.170.0050.01214.99
7.2.120.0060.00616.33
7.2.110.0090.00616.36
7.2.100.0060.00616.35
7.2.90.0030.00716.73
7.2.80.0000.00916.48
7.2.70.0030.01016.95
7.2.60.0050.01016.81
7.2.50.0000.01116.91
7.2.40.0030.00516.94
7.2.30.0070.01116.69
7.2.20.0120.00017.01
7.2.10.0050.00516.72
7.2.00.0030.00817.90
7.1.330.0070.00515.71
7.1.320.0030.01015.85
7.1.310.0030.01015.82
7.1.300.0040.00915.77
7.1.290.0060.01015.95
7.1.280.0090.00715.73
7.1.270.0070.01015.86
7.1.260.0070.00715.84
7.1.240.0030.01015.84
7.1.230.0060.00615.89
7.1.220.0000.01415.61
7.1.210.0100.00315.65
7.1.200.0050.00915.78
7.1.190.0090.00615.84
7.1.180.0080.00815.79
7.1.170.0080.00315.89
7.1.160.0030.00715.86
7.1.150.0040.00815.93
7.1.140.0040.00815.93
7.1.130.0000.01215.71
7.1.120.0000.01215.84
7.1.110.0100.00715.93
7.1.100.0080.00516.76
7.1.90.0030.00915.92
7.1.80.0060.00615.88
7.1.70.0090.00516.55
7.1.60.0050.01117.79
7.1.50.0070.00916.24
7.1.40.0000.01215.76
7.1.30.0000.01415.54
7.1.20.0000.01415.82
7.1.10.0070.00415.69
7.1.00.0040.04219.13
7.0.320.0030.01015.50
7.0.310.0100.00315.45
7.0.300.0030.00715.50
7.0.290.0070.00715.38
7.0.280.0030.00515.52
7.0.270.0040.01215.57
7.0.260.0040.00715.45
7.0.250.0030.01015.44
7.0.240.0030.01015.48
7.0.230.0070.00315.52
7.0.220.0000.01215.55
7.0.210.0000.01115.13
7.0.200.0050.00616.16
7.0.190.0020.00515.37
7.0.180.0100.00015.51
7.0.170.0030.01015.30
7.0.160.0080.00815.46
7.0.150.0000.01015.54
7.0.140.0050.04018.79
7.0.130.0060.00615.40
7.0.120.0000.01215.28
7.0.110.0090.00615.48
7.0.100.0090.00615.26
7.0.90.0000.00715.48
7.0.80.0130.00015.39
7.0.70.0110.00015.18
7.0.60.0050.04117.70
7.0.50.0060.02116.77
7.0.40.0090.04516.80
7.0.30.0290.03416.76
7.0.20.0030.02916.66
7.0.10.0070.04716.92
7.0.00.0080.04216.78
5.6.380.0060.00614.48
5.6.370.0030.01014.43
5.6.360.0000.01214.26
5.6.350.0070.00714.25
5.6.340.0080.00414.45
5.6.330.0040.00414.51
5.6.320.0100.00014.18
5.6.310.0080.00414.04
5.6.300.0040.00814.17
5.6.290.0030.00714.16
5.6.280.0020.04517.71
5.6.270.0000.01314.12
5.6.260.0030.00614.18
5.6.250.0030.01014.31
5.6.240.0080.00414.50
5.6.230.0040.00814.24
5.6.220.0000.01414.59
5.6.210.0050.04517.30
5.6.200.0080.04116.26
5.6.190.0040.02417.34
5.6.180.0250.04517.40
5.6.170.0230.04117.32
5.6.160.0050.02817.54
5.6.150.0070.04716.31
5.6.140.0060.03816.08
5.6.130.0030.03216.22
5.6.120.0050.02517.50
5.6.110.0120.04017.50
5.6.100.0080.03117.63
5.6.90.0090.04617.50
5.6.80.0050.04217.29
5.6.70.0030.00614.06
5.6.60.0030.00514.35
5.6.50.0000.01414.14
5.6.40.0060.00614.36
5.6.30.0080.00014.14
5.6.20.0070.00714.17
5.6.10.0030.01314.30
5.6.00.0040.00813.91
5.5.380.0030.00311.27
5.5.370.0030.00311.27
5.5.360.0030.00711.27
5.5.350.0080.03815.89
5.5.340.0020.04714.61
5.5.330.0050.02315.77
5.5.320.0070.04215.89
5.5.310.0180.04515.81
5.5.300.0030.02014.62
5.5.290.0060.04014.59
5.5.280.0050.04216.06
5.5.270.0090.04116.07
5.5.260.0070.04516.01
5.5.250.0010.03315.94
5.5.240.0120.03715.65
5.5.230.0070.00311.27
5.5.220.0000.00711.27
5.5.210.0000.00511.27
5.5.200.0070.00011.27
5.5.190.0070.00311.27
5.5.180.0040.00411.27
5.5.170.0100.00314.23
5.5.160.0030.00911.27
5.5.150.0100.00011.27
5.5.140.0030.00311.27
5.5.130.0030.00611.27
5.5.120.0030.00711.32
5.5.110.0030.00311.27
5.5.100.0030.00611.27
5.5.90.0000.00911.27
5.5.80.0030.00611.27
5.5.70.0080.00311.27
5.5.60.0060.00311.27
5.5.50.0090.00011.27
5.5.40.0060.00011.27
5.5.30.0060.00611.27
5.5.20.0060.00611.27
5.5.10.0060.00611.27
5.5.00.0030.00711.27
5.4.450.0550.02815.33
5.4.440.0460.02115.29
5.4.430.0150.02815.46
5.4.420.0070.03515.45
5.4.410.0070.03315.34
5.4.400.0070.03115.23
5.4.390.0090.04515.29
5.4.380.0140.03614.98
5.4.370.0230.03814.86
5.4.360.0200.03114.92
5.4.350.0300.03614.99
5.4.340.0250.02715.03
5.4.330.0030.00311.27
5.4.320.0100.01811.89
5.4.310.0070.02111.89
5.4.300.0050.02311.89
5.4.290.0070.02511.88
5.4.280.0060.02611.83
5.4.270.0020.02511.83
5.4.260.0080.02311.83
5.4.250.0060.02311.83
5.4.240.0110.02411.83
5.4.230.0050.02011.83
5.4.220.0040.02411.83
5.4.210.0040.02411.83
5.4.200.0040.02211.83
5.4.190.0050.02211.83
5.4.180.0080.02111.83
5.4.170.0050.02111.83
5.4.160.0050.02411.83
5.4.150.0060.02011.83
5.4.140.0040.02411.67
5.4.130.0060.02011.66
5.4.120.0040.02611.64
5.4.110.0100.01911.64
5.4.100.0100.02011.64
5.4.90.0070.02411.65
5.4.80.0040.02711.64
5.4.70.0090.02011.64
5.4.60.0050.01911.64
5.4.50.0060.02111.64
5.4.40.0040.02311.63
5.4.30.0060.02711.63
5.4.20.0080.02711.63
5.4.10.0080.02211.63
5.4.00.0050.02111.38
5.3.290.0080.02012.04
5.3.280.0060.02611.99
5.3.270.0070.02012.00
5.3.260.0050.02611.99
5.3.250.0060.02011.99
5.3.240.0080.02211.99
5.3.230.0040.02411.99
5.3.220.0090.01811.97
5.3.210.0060.02011.98
5.3.200.0080.01811.97
5.3.190.0070.02011.97
5.3.180.0070.02011.97
5.3.170.0070.02811.97
5.3.160.0030.02411.97
5.3.150.0080.01811.97
5.3.140.0040.02311.96
5.3.130.0070.01911.96
5.3.120.0040.02411.96
5.3.110.0050.02611.96
5.3.100.0070.02811.69
5.3.90.0040.02211.68
5.3.80.0050.02511.68
5.3.70.0040.02111.68
5.3.60.0050.02111.67
5.3.50.0100.01611.65
5.3.40.0060.02111.65
5.3.30.0020.02211.63
5.3.20.0050.01811.51
5.3.10.0050.01911.50
5.3.00.0030.02211.49
5.2.170.0050.01610.23
5.2.160.0050.01510.23
5.2.150.0040.02010.23
5.2.140.0030.01910.22
5.2.130.0030.01810.21
5.2.120.0040.01810.21
5.2.110.0040.01910.21
5.2.100.0070.01410.21
5.2.90.0050.01710.21
5.2.80.0050.01810.20
5.2.70.0040.01610.21
5.2.60.0010.02110.18
5.2.50.0020.02110.17
5.2.40.0050.01610.15
5.2.30.0020.01810.14
5.2.20.0040.01910.14
5.2.10.0070.01410.10
5.2.00.0050.01610.03
5.1.60.0040.0139.67
5.1.50.0040.0159.67
5.1.40.0060.0169.66
5.1.30.0040.0169.83
5.1.20.0020.0189.84
5.1.10.0050.0159.71
5.1.00.0040.0189.71
5.0.50.0040.0138.95
5.0.40.0050.0118.88
5.0.30.0020.0218.78
5.0.20.0020.0128.77
5.0.10.0050.0118.76
5.0.00.0040.0158.75
4.4.90.0040.0088.03
4.4.80.0020.0108.01
4.4.70.0030.0108.01
4.4.60.0050.0078.01
4.4.50.0050.0078.02
4.4.40.0040.0157.99
4.4.30.0050.0108.01
4.4.20.0030.0118.06
4.4.10.0030.0118.06
4.4.00.0030.0148.02
4.3.110.0020.0107.97
4.3.100.0010.0117.97
4.3.90.0020.0107.95
4.3.80.0020.0147.93
4.3.70.0020.0107.95
4.3.60.0040.0077.95
4.3.50.0020.0107.95
4.3.40.0020.0157.90
4.3.30.0010.0127.28
4.3.20.0030.0117.27
4.3.10.0030.0097.25
4.3.00.0070.00812.42

preferences:
49.29 ms | 401 KiB | 5 Q