3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class BaseClass { public function test() { echo "BaseClass::test() called\n"; } final public function moreTesting() { echo "BaseClass::moreTesting() called\n"; } } class ChildClass extends BaseClass { public function moreTesting() { echo "ChildClass::moreTesting() called\n"; } } ?>
Output for 5.3.0 - 5.4.29
Fatal error: Cannot override final method BaseClass::moreTesting() in /in/B4R7I on line 18
Process exited with code 255.