3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public function setThis() { } } class Bar extends Foo { private function setThis() { return 'hello'; } } $Bar = new Bar;
Output for 5.3.0 - 5.4.20
Fatal error: Access level to Bar::setThis() must be public (as in class Foo) in /in/irD0H on line 14
Process exited with code 255.