3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface foo { protected function foo(); } class Bar implements foo { }
Output for 5.3.0 - 5.3.24, 5.3.26 - 5.4.16
Fatal error: Access type for interface method foo::foo() must be omitted in /in/2nJV8 on line 3
Process exited with code 255.
Output for 5.3.25
Fatal error: Access type for interface method foo::foo() must be omitted in /in/VoXW0 on line 3
Process exited with code 255.