3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data1 = array("Peter" => "1", "Ann" => "1", "Susan" => "2", "Tom"=> "3"); $find = 1; Var_dump(array_keys(array_intersect($data1, [$find])));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> string(5) "Peter" [1]=> string(3) "Ann" }

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:
118.39 ms | 405 KiB | 5 Q