3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function f() { g(0, func_get_args()); } function g ($x, $y) { var_dump($x); var_dump($y); } f(1, 2, 3);
Output for 5.3.0 - 7.1.0
int(0) array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }
Output for 5.2.3 - 5.2.17
Fatal error: func_get_args(): Can't be used as a function parameter in /in/Zv34E on line 4
Process exited with code 255.
Output for 4.3.2 - 5.2.2
<br /> <b>Fatal error</b>: func_get_args(): Can't be used as a function parameter in <b>/in/Zv34E</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: func_get_args(): Can't be used as a function parameter in <b>/in/Zv34E</b> on line <b>4</b><br />