3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = 'demo'; $array2 = array("demo", "b" => array("1")); $result = @in_array($array1, $array2); print_r($result);
based on FdUCQ
Output for 4.3.0 - 7.1.0
1