- Output for 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.17, 8.4.1 - 8.4.5
- 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 7.0.6 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30
- string(21) "MyArray::offsetExists" string(18) "MyArray::offsetGet" bool(true) string(21) "MyArray::offsetExists" bool(false)
- Output for 7.0.0 - 7.0.5
- 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.