3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait byField { public $a=array(array('byField', 'trFu')); static function trFu($v) {return $v-1;} } class cl { use byField; } $o=new cl(); var_dump($a); echo $o->a[0](22);
based on UCclR
Output for 5.4.10 - 7.2.0
Notice: Undefined variable: a in /in/ZcKU7 on line 13 NULL 21
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/ZcKU7 on line 3
Process exited with code 255.