3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Command {} interface ITest { public function handle($command); } class CTest implements ITest { public function handle(Command $command) { } }
based on Sho9A
Output for 7.0.0 - 7.2.0
Fatal error: Declaration of CTest::handle(Command $command) must be compatible with ITest::handle($command) in /in/g8Q0m on line 9
Process exited with code 255.
Output for 5.4.12 - 5.6.28
Fatal error: Declaration of CTest::handle() must be compatible with ITest::handle($command) in /in/g8Q0m on line 9
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Fatal error: Declaration of CTest::handle() must be compatible with that of ITest::handle() in /in/g8Q0m on line 9
Process exited with code 255.