3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
_<?php function test($var1, $var2 = false) { var_dump($var1, $var2); } function testProxy() { call_user_func_array('test', func_get_args()); } testProxy('var1');
based on ZEIge
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
_string(4) "var1" bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2 - 5.2.17
_ Fatal error: func_get_args(): Can't be used as a function parameter in /in/Nve8U on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
_ Fatal error: func_get_args(): Can't be used as a function parameter in /in/Nve8U on line 12