3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Bar{} class Foo implements ArrayAccess<string, Bar> { public function offsetExists(string $offset): bool { return true;} public function offsetGet(string $offset): Bar { return new Bar();} public function offsetSet(string $offset, Bar $value): this { return $this;} public function offsetUnset(string $offset): this { return $this;} } function main(): void { $x = new Foo(); $x->offsetSet("Hi", new Bar()); }

This is an error 404

There are `0` results


preferences:
142.99 ms | 1399 KiB | 7 Q