object(stdClass)#1 (2) {
["first"]=>
int(1)
["second"]=>
int(2)
}
============
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/cjovi:6
Stack trace:
#0 /in/cjovi(12): f(Object(stdClass))
#1 {main}
thrown in /in/cjovi on line 6
Process exited with code 255.
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
object(stdClass)#1 (2) {
["first"]=>
int(1)
["second"]=>
int(2)
}
============
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/cjovi:6
Stack trace:
#0 /in/cjovi(12): f(Object(stdClass))
#1 {main}
thrown in /in/cjovi on line 6
Process exited with code 255.
object(stdClass)#1 (2) {
["first"]=>
int(1)
["second"]=>
int(2)
}
============
Fatal error: Cannot use object of type stdClass as array in /in/cjovi on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9
object(stdClass)(2) {
["first"]=>
int(1)
["second"]=>
int(2)
}
============
Warning: Cannot use a scalar value as an array in /in/cjovi on line 6
object(stdClass)(2) {
["first"]=>
int(1)
["second"]=>
int(2)
}
----------object(stdClass)(2) {
["first"]=>
int(1)
["second"]=>
int(2)
}