<?php abstract class Foo { private static $x = 1; } $bar = new class extends Foo { function bar() { var_dump(self::$x); } }; $bar->bar();
You have javascript disabled. You will not be able to edit any code.