3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Parent { function derp() { echo 'Everything went better than expected...'; } } class ParentChild extends Parent { function derp() { die('DONT DO THIS'); } } class Child extends ParentChild { function derp() { // dont parent::derp(); parent::parent::derp(); } }
Output for 5.3.0 - 5.4.7
Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/8oqcR on line 2
Process exited with code 255.