3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait T{ public function kk() { echo 'kk'; } } trait T2{ public function kk() { echo 'T2'; } } class World { use T, T2 { T::kk as xx; T2::kk insteadof T; } protected static function hello() { echo "Hello " . __CLASS__; } } $w = new World; $w->kk();
Output for 7.3.0rc3
T2