<?php
function f()
{
$str = 'string';
echo $str[2]; //< Notice: It's not possible to fetch an array element on a non array [language_error]
$o = new \stdClass;
$obj = new \SplObjectStorage;
$obj[$o] = 1;
echo $obj[$o]; //< Notice: It's not possible to fetch an array element on a non array [language_error]
}
f();