3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace Interfaces { interface FeelingsInterface { } } class Human { } class Animal { } class Person extends Human implements Interfaces\FeelingsInterface { } class Dog extends Animal implements Interfaces\FeelingsInterface { } $me = new Person(); $dog = new Dog(); var_dump(class_implements($me)); var_dump(class_implements($dog));
Output for 5.3.0 - 5.4.23
Fatal error: No code may exist outside of namespace {} in /in/Y7PdY on line 7
Process exited with code 255.