3v4l.org

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