<?php class a{ function test() { echo "=== static::class ===\n"; var_dump(static::class); } } class b extends a{} class c extends b{} $a = new a(); $b = new b(); $c = new c(); $a->test(); $b->test(); $c->test();
You have javascript disabled. You will not be able to edit any code.