3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace Jeremy; try { throw new \Exception("Correct, non namespaced") }catch (Exception $e){ //Note namespaced Exception //this will neither catch nor error }
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '}' in /in/QMncl on line 10
Process exited with code 255.