3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public static $val = 'Foo'; public static function huh() { $class = new ReflectionClass(get_called_class()); echo $class->getStaticPropertyValue('foo'); } } class Bar extends Foo { public static $val = 'bar'; } Foo::huh(); Bar::huh();