3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php try { print 'test'; throw new Exception('this is a test'); } catch Exception($e) { print $e->getMessage(); }
Output for 5.4.0 - 5.5.0
Parse error: syntax error, unexpected 'Exception' (T_STRING), expecting '(' in /in/MGace on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_STRING, expecting '(' in /in/MGace on line 5
Process exited with code 255.