3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo { use Bar as Baz; } namespace Foo { use Baz as Bar; class Bar { public $y = 2; } } namespace Foo { use Bar as Baz; class Baz { public $x = 1; } } namespace { $x = new Foo\Bar(); $y = new Foo\Baz(); echo $x->y; echo $y->x; }