<?php class A { private const STUFF = 'yay'; public function doSomething() { var_dump(static::STUFF); } } class B extends A {} (new A())->doSomething(); (new B())->doSomething();
You have javascript disabled. You will not be able to edit any code.