3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function (){ echo "Hello!\n"; }​();
Output for 5.4.0 - 5.4.23
Warning: Unexpected character in input: ' ' (ASCII=11) state=0 in /in/6eWjJ on line 2 Warning: Unexpected character in input: ' ' (ASCII=11) state=0 in /in/6eWjJ on line 2 Warning: Unexpected character in input: ' ' (ASCII=11) state=0 in /in/6eWjJ on line 2 Parse error: syntax error, unexpected '​' (T_STRING) in /in/6eWjJ on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Warning: Unexpected character in input: ' ' (ASCII=11) state=0 in /in/6eWjJ on line 2 Warning: Unexpected character in input: ' ' (ASCII=11) state=0 in /in/6eWjJ on line 2 Warning: Unexpected character in input: ' ' (ASCII=11) state=0 in /in/6eWjJ on line 2 Parse error: syntax error, unexpected T_STRING in /in/6eWjJ on line 2
Process exited with code 255.