3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { use B; } class C extends A { } trait B { public function dupa() { echo static::class; } } (new C())->dupa();
based on h1ebn
Output for 7.2.0 - 7.2.31, 7.3.0 - 7.3.19, 7.4.0 - 7.4.7, 8.0.0alpha1 - alpha2
C