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"] ));
Output for git.master, git.master_jit
Array ( [b] => brown )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.97 ms | 843 KiB | 4 Q