3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public function check(Test $x); } interface TestStrict extends Test { public function checkStrict(TestStrict $x); } class Foo implements TestStrict { //ok, exact match public function checkStrict(TestStrict $x) {} //fail, but TestStrict > Test I.e. //if $x fullfills TestStrict, it 100% satisfy Test too. //so - why? public function check(TestStrict $x) {} }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
189.05 ms | 2864 KiB | 8 Q