3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function create_function() in /in/evTcX:3 Stack trace: #0 {main} thrown in /in/evTcX on line 3
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
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.18 - 7.0.31, 7.1.4 - 7.1.21, 7.3.32 - 7.3.33
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.17, 7.1.0 - 7.1.3
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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30
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"

preferences:
313.7 ms | 404 KiB | 403 Q