3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (version_compare(phpversion(), '5.0.0', '>=') { echo '5'; } else{ echo 'no 5'; }
Output for 5.4.18 - 5.4.19
Parse error: syntax error, unexpected '{' in /in/6UAKM on line 3
Process exited with code 255.
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected '{' in /in/5qVSu on line 3
Process exited with code 255.