3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface UriInterface { /** * @return self */ public function withHost($value); } interface Uri2Interface { public function withHost(string $value) : self; } class UriImplementingV1UsingTypeHintsFromV2 implements UriInterface { private $host; public function withHost(string $value) : self { $clone = clone $this; $clone->host = $value; return $clone; } } class UriImplementingV2WithoutTypeHints implements Uri2Interface { private $host; public function withHost($value) { $clone = clone $this; $clone->host = $value; return $clone; } }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
156.98 ms | 2107 KiB | 10 Q