Call function of just created object
<p>How to call function of just created object without temporary variable? </p>

<p>Code </p>

<pre><code>(new \Foo())-&gt;woof();
</code></pre>

<p>is not valid in php.</p>

<p>What is right? </p>
