3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '}' in /in/QMncl on line 10
Process exited with code 255.

preferences:
179.47 ms | 1395 KiB | 61 Q