Is pass by reference supported in php 7?
<p>Recently we migrated PHP 5.6 to PHP 7</p>

<p>and now following code throws  <code>$this-&gt;a =&amp; new test($this-&gt;f);</code></p>

<pre><code>Parse error: syntax error, unexpected 'new' (T_NEW) 
</code></pre>

<p>any ideas? what are the alternation that I could use for it?</p>