3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = 'demo1'; $array2 = array("demo", "b" => array("1")); $result = in_array($array1, $array2); var_dump($result);
based on T0miM
Output for 4.3.0 - 7.2.0
bool(false)