3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Iface1 { public function method(self $other); } class A implements Iface1 { public function method(parent $other) {} } $a = new A(); // $a->method(new I2());

This is an error 404

There are `0` results


preferences:
170.45 ms | 1399 KiB | 7 Q