3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait Test{ public function testtreit(){ return 'Это трейт !'; } } class Apple { public $var1; public $var2 = 'Orange'; public function type() { return 'Apple'; } public function __call($name, $arg){ call_user_func_array($name); } } $ar = new Apple(); $ar->testtreit(); ?>
based on 5ibSN
Output for 5.4.10 - 7.3.0rc4
Warning: call_user_func_array() expects exactly 2 parameters, 1 given in /in/s8Dak on line 16
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/s8Dak on line 2
Process exited with code 255.