3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Parent{ public static foo(){ echo 'p:foo'; } } class Child extends Parent { public static foo(){ echo 'c:foo'; } } class GrandChild extends Child { } GrandChild::foo();
Output for 5.3.0 - 5.4.20
Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/03PTB on line 3
Process exited with code 255.