3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private static $bar = 'bar'; function getBar() { return static::$bar; } } class FooProxy extends Foo { } var_dump((new FooProxy())->getBaz());

preferences:
37.55 ms | 402 KiB | 5 Q