Will I have to upgrade to >=5.4 to have that option?
Yes. You need to upgrade to PHP 5.4 to do that.
That was a new feature introduced on PHP 5.4 actually.. Class member access on instantiation has been added, e.g. (new Foo)->bar().
If you try doing that on PHP versions less than 5.4 , you will run into this error.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';'