3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I1 { public function fromThing(ThingA $thing); } interface I2 { public function fromThing(ThingB $thing); } class ThingA {} class ThingB {} class Impl implements I1, I2 { public function fromThing(ThingA|ThingB $thing) { } } $i = new Impl();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
210.44 ms | 1855 KiB | 10 Q