3v4l.org

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

preferences:
182.68 ms | 1387 KiB | 64 Q