3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php global $test; try { $test->ping(); } catch (Exception $e) { throw new Exception('Service database connection unsuccessful'). } ?>
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected '}' in /in/2SXj5 on line 9
Process exited with code 255.