3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Parent { public function finish() { print_r('Parent'); return false; } } class Child extends Parent { public function finish() { parent::finish(); print_r('Child'); } } $child = new Child(); $child->finish();
Output for 5.3.0 - 5.4.24
Fatal error: Cannot use 'Parent' as class name as it is reserved in /in/sNlbO on line 3
Process exited with code 255.