3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait A { public $v2=12; } trait B { public $v=11; } class C { use B; use A; } $o=new C(); var_dump($o->v2);
based on C4A1n
Output for 5.4.10 - 7.2.0
int(12)
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/RLnCd on line 3
Process exited with code 255.