3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface B { } interface A extends B { public function a(B $a); } class AA implements A { public function a(A $a) { // } }
based on q3FIR
Output for 7.0.0 - 7.2.0
Fatal error: Declaration of AA::a(A $a) must be compatible with A::a(B $a) in /in/0o7gn on line 12
Process exited with code 255.
Output for 5.4.12 - 5.6.28
Fatal error: Declaration of AA::a() must be compatible with A::a(B $a) in /in/0o7gn on line 13
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Fatal error: Declaration of AA::a() must be compatible with that of A::a() in /in/0o7gn on line 13
Process exited with code 255.