3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $functionName = 'MyFunction'; // Create function with the name defined in variable $functionName function MyFunction($argument) { return 'Argument passed is: '.$argument; } var_dump(MyFunction('Calling MyFunction directly.')); var_dump({'MyFunction'}('Calling MyFunction with string.'));
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected '{', expecting ')' in /in/SUUiM on line 10
Process exited with code 255.