3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface A { public function methodWithoutReturnType($a); } class Concrete implements A { public function methodWithoutReturnType(A $a) { } }
based on V4c28
Output for 7.0.30 - 7.3.0beta1
Fatal error: Declaration of Concrete::methodWithoutReturnType(A $a) must be compatible with A::methodWithoutReturnType($a) in /in/KMlZm on line 7
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Declaration of Concrete::methodWithoutReturnType() must be compatible with that of A::methodWithoutReturnType() in /in/KMlZm:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: Declaration of Concrete::methodWithoutReturnType() must be compatible with that of A::methodWithoutReturnType() in /in/KMlZm:7 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.30
Fatal error: Declaration of Concrete::methodWithoutReturnType() must be compatible with A::methodWithoutReturnType($a) in /in/KMlZm on line 7
Process exited with code 255.