3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cf = create_function('$a', 'return $a');
based on U5cfk
Output for 7.2.0
Deprecated: Function create_function() is deprecated in /in/fG5dQ on line 2 Parse error: syntax error, unexpected '}', expecting ';' in /in/fG5dQ(2) : runtime-created function on line 1
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Parse error: syntax error, unexpected '}', expecting ';' in /in/fG5dQ(2) : runtime-created function on line 1
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected '}' in /in/fG5dQ(2) : runtime-created function on line 1
Process exited with code 255.