3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo { class A { } } namespace Bar { use Foo\A; class B extends A { } } namespace { use Foo\A; use Bar\B; $a = new A(); var_dump($a); $b = new B(); var_dump($b); }