<?php
class Foo
{
private static $name = 'foo';
public static function getName()
{
return static::$name;
}
}
class Bar extends Foo
{
private static $name = 'bar';
}
echo Bar::getName();
PD9waHAKaW5pX3NldCgnZGlzcGxheV9lcnJvcnMnLCB0cnVlKTsKZXJyb3JfcmVwb3J0aW5nKEVfQUxMKTsKCmNsYXNzIEZvbwp7CiAgICBwcml2YXRlIHN0YXRpYyAkbmFtZSA9ICdmb28nOwogICAgcHVibGljIHN0YXRpYyBmdW5jdGlvbiBnZXROYW1lKCkKICAgIHsKICAgICAgICByZXR1cm4gc3RhdGljOjokbmFtZTsKICAgIH0KfQoKY2xhc3MgQmFyIGV4dGVuZHMgRm9vCnsKICAgIHByaXZhdGUgc3RhdGljICRuYW1lID0gJ2Jhcic7Cn0KCmVjaG8gQmFyOjpnZXROYW1lKCk7