3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result = create_function('', 'return (return 1);'); var_dump($result);
based on i46oU
Output for 7.2.0 - 7.2.6
Deprecated: Function create_function() is deprecated in /in/nm4t9 on line 3 Parse error: syntax error, unexpected 'return' (T_RETURN) in /in/nm4t9(3) : runtime-created function on line 1
Process exited with code 255.
Output for 7.0.0 - 7.1.20
Parse error: syntax error, unexpected 'return' (T_RETURN) in /in/nm4t9(3) : runtime-created function on line 1
Process exited with code 255.
Output for 5.4.9 - 5.6.28
Parse error: syntax error, unexpected 'return' (T_RETURN) in /in/nm4t9(3) : runtime-created function on line 1 bool(false)
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_RETURN in /in/nm4t9(3) : runtime-created function on line 1 bool(false)
Process exited with code 255.