3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = 'demo1'; $array2 = array("demo", "b" => array("1")); $result = in_array($array1, $array2); echo 'ID_' . $array2;
based on CIKUf
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/CeYgm on line 5 ID_Array
Output for 4.3.0 - 5.3.29
ID_Array