How to print PHP equation to analyze it?
<p>I've got a simple script with a lot of formulas like so:</p>

<pre><code>$formula = 12 *( $C + ($D * $A) + $H ) + $B * ((($F+$J)*$M/$L)+(($G+$K)*$N/$L)+$E);
</code></pre>

<p>Is there any easy way to output the values to debug the equation? Like:</p>

<pre><code>12 * ( 15 (44 * 11) + 33) + 3 * [...]
</code></pre>

<p>Or I have to to do it the usual way:</p>

<pre><code>echo "12" . '* ('. $C .' + ' [...]
</code></pre>

<p>I've got lot of these formulas, so I'm looking for some shortcut to debug them.</p>
