3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace React; class Exception extends \Exception { } use \Exception as Exception; class A { public function __construct(Exception $e) { } } new A(new namespace\Exception);
Output for 5.3.0 - 5.6.12
Fatal error: Cannot use Exception as Exception because the name is already in use in /in/mTf2g on line 8
Process exited with code 255.