3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "null"; $arr = get_defined_vars(); foreach($arr as $k => $v) { if (is_array($v) { echo in_array('str',$v); } }
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected '{' in /in/L181c on line 5
Process exited with code 255.