Is it better to call function in a nested way or to split each passage inside a var?
<p>Take these three examples:</p>

<p><strong>ONE</strong></p>

<pre><code>return lowercaseKeys(json_decode(trim($json),true));
</code></pre>

<p><strong>TWO</strong></p>

<pre><code>$trimmed = trim($json);
$array = json_decode($trimmed,true);
$return = lowercaseKeys($array);
return $return;
</code></pre>

<p><strong>THREE</strong></p>

<pre><code>$return = trim($json);
$return = json_decode($return,true);
$return = lowercaseKeys($return);
return $return;
</code></pre>

<p>Aside from readability, which is the best performance wise?
What is considered best practice?</p>

<p>p.s. code is only an example, not related to the question, I just copy pasted from my notepad window.</p>
