3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = array('test'=>1, 'test2'=>2); if ($var) { echo $var['test'] } else { echo $var['test2'] }
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/LMQrY on line 6
Process exited with code 255.