3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test(&$v) { $v = $v + $v; } $v = 8; call_user_func('test', &$v); echo $v;
Output for 5.4.0 - 5.4.19
Fatal error: Call-time pass-by-reference has been removed in /in/q3BA6 on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/q3BA6 on line 9 16