3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Base { protected function func() { echo 1; } } class Child extends Base { private function func() { parent::func(); } } $c = new Child(); $c->func();
Output for 5.3.0 - 5.4.18
Fatal error: Access level to Child::func() must be protected (as in class Base) or weaker in /in/8spU7 on line 19
Process exited with code 255.