3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait Bar { public static function dump() { var_dump('self::class: ' . self::class, 'static::class: ' . static::class); } } class Foo { use Bar; public static function dump() { var_dump('self::class: ' . self::class, 'static::class: ' . static::class); } } Foo::dump();