3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface RangeFinderInterface { public function doStuff(): self; } class RangeFinder implements RangeFinderInterface { public function doStuff(): self { echo 'hello world', "\n"; return $this; } } $rf = new RangeFinder; $rf->doStuff()->doStuff()->doStuff();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
141.32 ms | 2122 KiB | 10 Q