3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Command {} class CCommand {} interface ITest { public function handle(Command $command); } class CTest implements ITest { public function handle(CCommand $command) { } }
based on g8Q0m
Output for 7.0.0 - 7.3.0
Fatal error: Declaration of CTest::handle(CCommand $command) must be compatible with ITest::handle(Command $command) in /in/ZvBri on line 10
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Declaration of CTest::handle() must be compatible with that of ITest::handle() in /in/ZvBri:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.21.3
Fatal error: Uncaught Error: Declaration of CTest::handle() must be compatible with that of ITest::handle() in /in/ZvBri:10 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.3.22 - 5.3.29, hhvm-3.10.1
Fatal error: Declaration of CTest::handle() must be compatible with that of ITest::handle() in /in/ZvBri on line 10
Process exited with code 255.
Output for 5.4.12 - 5.6.38
Fatal error: Declaration of CTest::handle() must be compatible with ITest::handle(Command $command) in /in/ZvBri on line 10
Process exited with code 255.