3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { protected function bla() { return "A"; } public function printIt() { echo $this->bla(); } } class B extends A { private function bla() { return "B"; } } $a = new A(); $b = new B(); $a->printIt(); $b->printIt();
Output for 5.3.0 - 5.4.17
Fatal error: Access level to B::bla() must be protected (as in class A) or weaker in /in/Xeffp on line 22
Process exited with code 255.