3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $exclude = array('test'); $password = 'test'; while ( in_array($password,$test) ) { echo 'yes'; }
based on 9krc3
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Notice: Undefined variable: test in /in/kqAvp on line 6 Warning: in_array() expects parameter 2 to be array, null given in /in/kqAvp on line 6
Output for hhvm-3.15.4
Notice: Undefined variable: test in /in/kqAvp on line 6 Warning: in_array() expects parameter 2 to be an array or collection in /in/kqAvp on line 6