3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class theParent { function derp() { echo 'Everything went better than expected...'; } } class ParentChild extends theParent { function derp() { die('DONT DO THIS'); } } class Child extends ParentChild { function derp() { // dont parent::derp(); parent::parent::derp(); } }
Output for 5.4.0 - 5.4.7
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in /in/VkKQ7 on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.17
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /in/VkKQ7 on line 15
Process exited with code 255.