3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface foo { public function atata(); } class bar implements foo { public $tt = 15; protected function atata() { echo 'atata'; } } $b = new bar(); $b->atata();
based on TYWGA
Output for 7.0.0 - 7.2.0
Fatal error: Access level to bar::atata() must be public (as in class foo) in /in/vcmTT on line 8
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Access level to bar::atata() must be public (as in class foo) in /in/vcmTT on line 9
Process exited with code 255.