3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(); $arr["a"] = array("c" => "A"); $arr["b"] = array("d" => "B"); /*$str = array_filter($arr, function($e1){ echo $e1; return $e1; });*/ $str = array_search("c", $arr); var_dump($str); var_dump(in_array("B", $arr));
based on MjbnP
Output for 4.3.0 - 7.2.0
bool(false) bool(false)