3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Parent { function id() { var_dump(self instanceof Child); } } class Child extends Parent { } $x = new Child; $x->id();
Output for 5.3.7 - 5.4.27
Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/dDOIh on line 3
Process exited with code 255.