At some point, I'm not sure when, the following shorthand property became available to reference an element in an array that became returned by a method:
echo $someObject->SomeMethod()['SomeElement'];
Where you append the element name after the method parentheses but before the semi-colon. What PHP version was this made available in?