3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait A { public function __get($a) { echo 1; } } class B { use A; public function __get($a) { echo 2; } } $b = new B(); $b->hello;
based on 18Dnb
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
2