3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function r($node) { if (!is_array($node['val']) { echo $node['val']; } else { foreach($node['val'] as $n) { r($n); } } } $a = array('val'=>'test'); r($a);
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected '{' in /in/J1Qf7 on line 5
Process exited with code 255.