3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo(&$object = null) { echo("Yay\n"); } call_user_func_array('foo', array(new stdClass()));
Output for hhvm-3.12.0, 7.1.0
Warning: Parameter 1 to foo() expected to be a reference, value given in /in/nZjvA on line 4 Yay
Output for 7.0.0 - 7.0.14
Warning: Parameter 1 to foo() expected to be a reference, value given in /in/nZjvA on line 4
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.6.28
Yay
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '=', expecting ')' in /in/nZjvA on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '=', expecting ')' in /in/nZjvA on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/nZjvA on line 3
Process exited with code 255.