3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface BaseInterface { public function testMethod(); } interface TestInterface extends BaseInterface { } class TestClass implements TestInterface, BaseInterface { public function testMethod() { } }
based on 54WpL
Output for 7.0.0 - 7.2.0
Fatal error: Class TestClass cannot implement previously implemented interface BaseInterface in /in/g3a4c on line 12
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Class TestClass cannot implement previously implemented interface BaseInterface in /in/g3a4c on line 13
Process exited with code 255.