3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace Irgendwo { class Irgendwas {} }; namespace Irgendwoanders { if (!class_exists('\Irgendwoanders\Test', false) { use Irgendwo\Irgendwas; class Test extends Irgendwas { } } }
Output for 5.3.0 - 5.4.26
Fatal error: No code may exist outside of namespace {} in /in/VvEaK on line 4
Process exited with code 255.