3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait A { public function foo() {return 1;} } trait B { public function foo() {return 2;} } trait C { /*public function foo() {return 3;}*/ } class Thing { use A, B, C { A::foo insteadof B, C; } } $t = new Thing; var_dump($t->foo());
based on rv0Mk
Output for 5.5.0 - 7.2.6
int(1)