Warning: Trying to access array offset on null in /in/BGiQU on line 5
accessing NULL as array
set NULL offset test to string wtf
accessing NULL offset test wtf
val = array (
'test' => 'wtf',
)
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/BGiQU:5
Stack trace:
#0 /in/BGiQU(13): test_val_as_array('test')
#1 {main}
thrown in /in/BGiQU on line 5
Process exited with code 255.
Warning: Trying to access array offset on value of type null in /in/BGiQU on line 5
accessing NULL as array
set NULL offset test to string wtf
accessing NULL offset test wtf
val = array (
'test' => 'wtf',
)
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/BGiQU:5
Stack trace:
#0 /in/BGiQU(13): test_val_as_array('test')
#1 {main}
thrown in /in/BGiQU on line 5
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Notice: Trying to access array offset on value of type null in /in/BGiQU on line 5
accessing NULL as array
set NULL offset test to string wtf
accessing NULL offset test wtf
val = array (
'test' => 'wtf',
)
Warning: Illegal string offset 'test' in /in/BGiQU on line 5
accessing string as array t
Warning: Illegal string offset 'test' in /in/BGiQU on line 6
set string offset test to string wtf
Warning: Illegal string offset 'test' in /in/BGiQU on line 8
accessing string offset test w
val = 'west'
Notice: Trying to access array offset on value of type int in /in/BGiQU on line 5
accessing integer as array
Warning: Cannot use a scalar value as an array in /in/BGiQU on line 6
set integer offset test to string wtf
Notice: Trying to access array offset on value of type int in /in/BGiQU on line 8
accessing integer offset test
val = 123
accessing NULL as array
set NULL offset test to string wtf
accessing NULL offset test wtf
val = array (
'test' => 'wtf',
)
Warning: Illegal string offset 'test' in /in/BGiQU on line 5
accessing string as array t
Warning: Illegal string offset 'test' in /in/BGiQU on line 6
set string offset test to string wtf
Warning: Illegal string offset 'test' in /in/BGiQU on line 8
accessing string offset test w
val = 'west'
accessing integer as array
Warning: Cannot use a scalar value as an array in /in/BGiQU on line 6
set integer offset test to string wtf
accessing integer offset test
val = 123