Interesting bug in PHP
<p>Here in the following block of program it prints 2  instead of 1. <br></p>

<pre><code>&lt;?php
 f(0, $$var);
 $x = 1;
 $y = 2;
 echo $x;
 function f($a, $b) {}
?&gt;
</code></pre>

<p>Any suggestions?
<br><strong>UPDATE 1</strong><br>
This information has been get from <a href="http://habrahabr.ru/blogs/php/95595" rel="nofollow">http://habrahabr.ru/blogs/php/95595</a>
<br><strong>UPDATE 2</strong><br>
By posting this question mainly I just wanted to 1) inform others about this bug, 2) get ideas of different users about the reasons of why this happens.</p>
