3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait A { public function get($name) { return 'poop'; } } class p { public function get($name) { return 'parent'; } } class c extends p { use A { get as getPoop; } } $a = new c(); var_dump($a->get('anything')); var_dump($a->getPoop('anything'));
based on MLD16
Output for 5.6.0 - 7.3.0beta1
string(4) "poop" string(4) "poop"