You can use the variable as a function name. This will execute getList():
getList()
$str();
However, stuff like this is mostly a symptom of a design problem. Care to elaborate what you need this for?