3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('derp'=>'test'); try { $d = $arr['derp6']; } catch (exception $e) { echo 'Died.'.print_R($e,1); echo $d;
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected end of file in /in/hbR4X on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected $end in /in/hbR4X on line 8
Process exited with code 255.