Which these conditional has a better performance in php?
<p>I think the first approach has a better performance.</p>

<pre><code>&lt;?php if(cond) { $var = 'v1'; } else { $var = 'v2'; } ?&gt;
</code></pre>

<p>or</p>

<pre><code>&lt;?php $var = (cond)?'v1':'v2'; ?&gt;
</code></pre>

<p>thanks.</p>

<p>EDIT: i mean about server performance like wasting less ram ...</p>
