3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = create_function("test"); var_dump( $test() );
Output for 7.2.0
Deprecated: Function create_function() is deprecated in /in/freUm on line 3 Warning: create_function() expects exactly 2 parameters, 1 given in /in/freUm on line 3 Fatal error: Uncaught Error: Function name must be a string in /in/freUm:5 Stack trace: #0 {main} thrown in /in/freUm on line 5
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Warning: create_function() expects exactly 2 parameters, 1 given in /in/freUm on line 3 Fatal error: Uncaught Error: Function name must be a string in /in/freUm:5 Stack trace: #0 {main} thrown in /in/freUm on line 5
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Warning: create_function() expects exactly 2 parameters, 1 given in /in/freUm on line 3 Fatal error: Function name must be a string in /in/freUm on line 5
Process exited with code 255.