3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace includ\views{ interface IView { } } namespace includ\views{ use includ\views\IView as IView; interface IMenu extends IView { } } namespace includ\views{ use includ\views\IMenu; class MenuAdministrador implements IMenu { } } $menus=array(); $menus[] = new includ\views\MenuAdministrador(); var_dump($menus[0] instanceof IMenu );
Output for 5.3.0 - 5.4.12
Fatal error: No code may exist outside of namespace {} in /in/hkAP2 on line 29
Process exited with code 255.