3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Whatever{ public function getSomething(); } interface Something extends Whatever{ public function getSomething() : Something; } class Test implements Something{ public function getSomething() : Something { return $this; } } $a = new Test();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
232.74 ms | 1975 KiB | 10 Q