3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo {} class Bar {use Foo; } class An extends Bar { use Foo; public $var; } var_dump((new An())->var);

preferences:
34.85 ms | 402 KiB | 5 Q