3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v = 18; function f( &$p ) { $p = 36; return $p; } echo call user_func('f', $v); // error: expecting reference variable
Output for 5.4.0 - 5.4.13
Parse error: syntax error, unexpected 'user_func' (T_STRING), expecting ',' or ';' in /in/Q2MU2 on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.23
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/Q2MU2 on line 7
Process exited with code 255.