3v4l.org

run code in 300+ PHP versions simultaneously
<?php // From the PHP manual $arrayl = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "GREEN", "B" => "brown", "yellow", "red"); $arrays = [$arrayl, $array2]; print_r(call_user_func_array("array_intersect_uassoc", [$arrayl, $array2, "strcasecmp"] ));

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.5.30.0090.00819.59
8.5.20.0100.00820.17
8.5.10.0090.00916.81
8.5.00.0130.00920.05
8.4.180.0130.01219.46
8.4.170.0100.01120.57
8.4.160.0150.00820.58
8.4.150.0080.00316.85
8.4.140.0130.00720.46
8.4.130.0110.00917.83
8.4.120.0090.01020.57
8.4.110.0040.00424.11
8.4.100.0120.00817.72
8.4.90.0110.00822.25
8.4.80.0110.00818.96
8.4.70.0100.00519.06
8.4.60.0110.01219.62
8.4.50.0110.00820.39
8.4.40.0090.00017.49
8.4.30.0390.01017.38
8.4.20.0390.00917.51
8.4.10.0410.00717.25
8.3.300.0120.01320.76
8.3.290.0080.00220.75
8.3.280.0100.01117.96
8.3.270.0160.01216.47
8.3.260.0130.00516.39
8.3.250.0060.00318.91
8.3.240.0100.00716.52
8.3.230.0120.00616.26
8.3.220.0040.00418.71
8.3.210.0040.00418.38
8.3.200.0040.00616.69
8.3.190.0090.00916.94
8.3.180.0140.00718.55
8.3.170.0090.00916.79
8.3.160.0280.01716.34
8.3.150.0320.00816.23
8.3.140.0240.01316.61
8.3.130.0360.00716.29
8.3.120.0300.01216.34
8.3.110.0330.01516.13
8.3.100.0300.01116.50
8.3.90.0320.00916.23
8.3.80.0400.00616.36
8.3.70.0410.00316.63
8.3.60.0380.00716.55
8.3.50.0390.00616.09
8.3.40.0280.01417.43
8.3.30.0120.00717.29
8.3.20.0250.01117.39
8.3.10.0300.00617.51
8.3.00.0130.00817.47
8.2.300.0060.01320.38
8.2.290.0110.00819.17
8.2.280.0050.00316.49
8.2.270.0280.01016.61
8.2.260.0300.00816.28
8.2.250.0370.00016.29
8.2.240.0390.00316.54
8.2.230.0390.00316.30
8.2.220.0300.01316.57
8.2.210.0360.00316.38
8.2.200.0310.00716.31
8.2.190.0280.01016.57
8.2.180.0270.00916.16
8.2.170.0310.01117.43
8.2.160.0380.00317.59
8.2.150.0320.00916.99
8.2.140.0310.01117.52
8.2.130.0340.00817.35
8.2.120.0340.00617.26
8.2.110.0460.00317.30
8.2.100.0280.00817.64
8.2.90.0220.01617.59
8.2.80.0220.00917.58
8.2.70.0310.00317.45
8.2.60.0330.00617.56
8.2.50.0250.00617.45
8.2.40.0210.01017.47
8.2.30.0320.00617.39
8.2.20.0340.00417.63
8.2.10.0190.01217.45
8.2.00.0250.01117.40
8.1.340.0090.00920.11
8.1.320.0120.00617.82

preferences:
54.7 ms | 843 KiB | 5 Q