3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function alert($s) { echo "$s\n"; } function isGreaterThan($a,$b) { return intval(($a>$b)); } alert(isGreaterThan(50,6)); alert(isGreaterThan('50','6')); alert(isGreaterThan('70','6'));‚Äč
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected end of file in /in/bNivV on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected $end in /in/bNivV on line 7
Process exited with code 255.