3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Parent { private getMember() { return 'member'; } } class Child extends Parent { use OverrideMemberVisibility; } trait OverrideMemberVisibility{ abstract public getMember(); } $child = new Child; echo $child->getMember();
Output for 5.3.0 - 5.4.24
Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/BcWdM on line 2
Process exited with code 255.