3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public function __construct() { $this->foo(); } final private function foo() { echo 'A'; } } class B extends A { private function foo() { echo 'B'; } } $b = new B();
Output for 5.3.0 - 5.4.17
Fatal error: Cannot override final method A::foo() in /in/KSL3Z on line 19
Process exited with code 255.