3v4l.org

run code in 300+ PHP versions simultaneously
<?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/eYirU on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected $end in /in/eYirU on line 7
Process exited with code 255.

preferences:
166.05 ms | 1395 KiB | 39 Q