Deprecated: Return type of MyArray::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/7C2Fs on line 25
Deprecated: Return type of & MyArray::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/7C2Fs on line 14
Deprecated: Return type of MyArray::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/7C2Fs on line 32
Deprecated: Return type of MyArray::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/7C2Fs on line 39
string(21) "MyArray::offsetExists"
string(18) "MyArray::offsetGet"
bool(true)
string(21) "MyArray::offsetExists"
bool(false)
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Deprecated: Return type of MyArray::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/7C2Fs on line 25
Deprecated: Return type of & MyArray::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/7C2Fs on line 14
Deprecated: Return type of MyArray::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/7C2Fs on line 32
Deprecated: Return type of MyArray::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/7C2Fs on line 39
string(21) "MyArray::offsetExists"
string(18) "MyArray::offsetGet"
bool(true)
string(21) "MyArray::offsetExists"
bool(false)
string(18) "MyArray::offsetGet"
bool(true)
string(18) "MyArray::offsetGet"
Fatal error: Uncaught Exception: Undefined index: hello in /in/7C2Fs:19
Stack trace:
#0 /in/7C2Fs(54): MyArray->offsetGet('hello')
#1 {main}
thrown in /in/7C2Fs on line 19
Process exited with code 255.
Output for 5.6.0 - 5.6.40
string(18) "MyArray::offsetGet"
bool(true)
string(18) "MyArray::offsetGet"
Fatal error: Uncaught exception 'Exception' with message 'Undefined index: hello' in /in/7C2Fs:19
Stack trace:
#0 /in/7C2Fs(54): MyArray->offsetGet('hello')
#1 {main}
thrown in /in/7C2Fs on line 19
Process exited with code 255.