Functionality of PHP get_class
<p>Can anyone explain why is the <code>get_class</code> function returning different values below? Specifically, what is it supposed to do when it is called in a base class and when it is called in a derived class?</p>

<pre><code>abstract class bar {
    public function __construct()
    {
        var_dump(get_class($this)); //prints 'foo'
        var_dump(get_class()); // prints 'bar'
    }
}

class foo extends bar {
}

new foo;
</code></pre>
