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); echo 'ID_' . array2;
based on h49Lt
Output for 7.2.0
Warning: Use of undefined constant array2 - assumed 'array2' (this will throw an Error in a future version of PHP) in /in/CIKUf on line 5 ID_array2
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant array2 - assumed 'array2' in /in/CIKUf on line 5 ID_array2