3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hhvm namespace test; function foo() { try { echo "ok!\n"; } catch (Exception $e) { echo "caught\n"; } }
Output for 5.4.0 - 5.4.35
Parse error: syntax error, unexpected 'namespace' (T_NAMESPACE) in /in/GZhhP on line 3
Process exited with code 255.