3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = create_function('$a, $a, $a, $a, $a',' var_dump (func_num_args ()); var_dump (func_get_args ()); var_dump ($a); ' ); $a (1, 2, 3, $a, "kumquat");
Output for 7.2.0
Deprecated: Function create_function() is deprecated in /in/evTcX on line 3 Fatal error: Redefinition of parameter $a in /in/evTcX(3) : runtime-created function on line 1
Process exited with code 255.
Output for 7.0.20, 7.1.5 - 7.1.10
Fatal error: Redefinition of parameter $a in /in/evTcX(3) : runtime-created function on line 1
Process exited with code 255.
Output for 7.0.0 - 7.0.14, 7.1.0
Fatal error: Redefinition of parameter $a in /in/evTcX(7) : runtime-created function on line 1
Process exited with code 255.
Output for 4.3.0 - 5.6.28
int(5) array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> string(9) "lambda_1" [4]=> string(7) "kumquat" } string(7) "kumquat"