3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Base { protected function func() { } } class Child extends Base { private function func() { } } $c = new Child();
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/7k6It on line 16
Process exited with code 255.