3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Test { public function jemoeder($test = 'jemoeder'); } class Jemoeder implements Test { public function jemoeder() { echo 'test'; } }
Output for 7.0.0 - 7.2.0
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Jemoeder has a deprecated constructor in /in/7TUZb on line 8 Fatal error: Declaration of Jemoeder::jemoeder() must be compatible with Test::jemoeder($test = 'jemoeder') in /in/7TUZb on line 8
Process exited with code 255.
Output for 5.4.12 - 5.6.28
Fatal error: Declaration of Jemoeder::jemoeder() must be compatible with Test::jemoeder($test = 'jemoeder') in /in/7TUZb on line 8
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Fatal error: Declaration of Jemoeder::jemoeder() must be compatible with that of Test::jemoeder() in /in/7TUZb on line 8
Process exited with code 255.