3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface A {} class A implements B {} class C extends A {} $a = new A; $c = new C; var_dump($c instanceof $a); var_dump($a instanceof $b); echo "C:\n"; var_dump($c instanceof C); var_dump($c instanceof A); var_dump($c instanceof B); echo "A:\n"; var_dump($a instanceof C); var_dump($a instanceof A); var_dump($a instanceof B);
Output for 5.3.0 - 5.4.29
Fatal error: Class C cannot extend from interface A in /in/iE57W on line 6
Process exited with code 255.