3v4l.org

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