3v4l.org

run code in 300+ PHP versions simultaneously
<?php class O implements ArrayAccess { public function offsetSet($offset, $value) {} public function offsetExists($offset) { return true; } public function offsetUnset($offset) {} public function offsetGet($offset) { return true; } } $o = new O; var_dump(array_key_exists('foo', $o));

preferences:
28.73 ms | 402 KiB | 5 Q