3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myfunction_key($a,$b) { if ($a===$b) { return 0; } return ($a>$b)?1:-1; } function myfunction_value($a,$b) { var_dump($a,$b); if ($a===$b) { return 0; } return ($a>$b)?1:-1; } $a1=array("a"=>"red","b"=>"green","c"=>"blue"); $a2=array("a"=>"red","b"=>"green","c"=>"green"); $result=array_udiff_uassoc($a1,$a2,,"myfunction_key","myfunction_value");die; 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)
5.4.320.0060.05012.52
5.4.310.0030.04612.51
5.4.300.0080.04312.52
5.4.290.0100.03512.52
5.4.280.0050.04012.41
5.4.270.0050.03912.41
5.4.260.0120.04612.41
5.4.250.0090.03812.41
5.4.240.0070.03612.41
5.4.230.0070.03812.41
5.4.220.0070.04112.40
5.4.210.0050.04912.41
5.4.200.0080.03912.40
5.4.190.0060.03812.40
5.4.180.0080.03612.40
5.4.170.0090.03612.41
5.4.160.0140.04212.40
5.4.150.0100.04812.39
5.4.140.0160.06312.09
5.4.130.0230.09912.07
5.4.120.0240.08412.03
5.4.110.0080.06912.03
5.4.100.0080.04312.03
5.4.90.0110.03812.04
5.4.80.0030.04212.03
5.4.70.0070.04312.03
5.4.60.0120.04212.03
5.4.50.0100.04412.03
5.4.40.0090.04112.01
5.4.30.0060.04312.01
5.4.20.0130.04012.01
5.4.10.0070.03712.01
5.4.00.0070.04711.51
5.3.290.0140.04712.80
5.3.280.0120.04712.71
5.3.270.0090.05212.72
5.3.260.0100.05012.72
5.3.250.0080.05212.72
5.3.240.0100.05412.72
5.3.230.0080.04012.71
5.3.220.0060.03912.68
5.3.210.0060.04812.68
5.3.200.0100.04812.68
5.3.190.0090.04712.67
5.3.180.0080.04512.67
5.3.170.0100.05312.67
5.3.160.0120.05512.67
5.3.150.0090.04512.67
5.3.140.0070.04512.66
5.3.130.0090.04512.66
5.3.120.0040.04712.66
5.3.110.0110.07012.66
5.3.100.0070.04712.13
5.3.90.0060.05112.11
5.3.80.0080.04612.10
5.3.70.0060.04712.10
5.3.60.0060.04912.09
5.3.50.0070.05012.04
5.3.40.0100.04212.03
5.3.30.0100.04511.98
5.3.20.0110.04311.78
5.3.10.0080.04611.74
5.3.00.0080.04711.73
5.2.170.0050.0439.23
5.2.160.0140.0299.23
5.2.150.0080.0329.23
5.2.140.0070.0359.23
5.2.130.0050.0299.18
5.2.120.0050.0319.18
5.2.110.0040.0339.19
5.2.100.0090.0369.19
5.2.90.0040.0439.18
5.2.80.0050.0399.18
5.2.70.0020.0339.18
5.2.60.0050.0329.14
5.2.50.0040.0329.11
5.2.40.0060.0279.09
5.2.30.0030.0349.05
5.2.20.0070.0279.04
5.2.10.0080.0308.95
5.2.00.0060.0408.81
5.1.60.0080.0238.10
5.1.50.0050.0298.10
5.1.40.0030.0298.07
5.1.30.0030.0398.43
5.1.20.0040.0278.44
5.1.10.0020.0328.17
5.1.00.0050.0368.18
5.0.50.0060.0216.65
5.0.40.0030.0196.51
5.0.30.0050.0296.32
5.0.20.0030.0216.29
5.0.10.0020.0266.26
5.0.00.0040.0306.25
4.4.90.0060.0124.78
4.4.80.0030.0174.75
4.4.70.0010.0194.75
4.4.60.0010.0184.76
4.4.50.0050.0144.77
4.4.40.0050.0264.70
4.4.30.0040.0144.76
4.4.20.0020.0174.84
4.4.10.0040.0204.85
4.4.00.0040.0244.75
4.3.110.0040.0224.67
4.3.100.0040.0164.66
4.3.90.0050.0154.63
4.3.80.0040.0264.58
4.3.70.0020.0164.63
4.3.60.0020.0154.63
4.3.50.0030.0164.63
4.3.40.0030.0314.54
4.3.30.0000.0233.31
4.3.20.0000.0253.28
4.3.10.0000.0203.24
4.3.00.0070.0236.95

preferences:
142.37 ms | 1394 KiB | 7 Q