3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Base {} interface A extends Base { public function a(); } interface B extends Base { public function b(); } class Base implements A, B { public function a() {} public function b() {} }
based on EqSlZ
Output for 7.0.0 - 7.2.0
Fatal error: Cannot declare class Base, because the name is already in use in /in/hm34G on line 13
Process exited with code 255.
Output for 5.3.21 - 5.6.21
Fatal error: Cannot redeclare class Base in /in/hm34G on line 13
Process exited with code 255.