You seem to have changed the arguments when calling the method. getSearchFreeCompanyMembers
Your first example shows getSearchFreeCompanyMembers()
The second is getSearchFreeCompanyMembers(1)
To get the first element in the array returned by the method.
1. Dereference as you did (just do not put 1 as argument).
$result = $API->getSearchFreeCompanyMembers()[0]
Beware the side effect is that the rest of the array returned is discarded. Also this feature is only available from <= 5.4
2. Save the returned array to a variable and pick the first element
$array = $API->getSearchFreeCompanyMembers();
print_r($array[0]);
For more info on arrays and for dereference see example #7 http://php.net/manual/en/language.types.array.php