3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '{' in /in/L181c on line 5
Process exited with code 255.

preferences:
196.43 ms | 1395 KiB | 66 Q