3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function isOdd($var) { return($var & 1); } for($i = 0; $i < 10; $i++) { echo isOdd($i) == 1 ? 'odd' ? 'even'; echo '<br />'; }
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected ';' in /in/GeDg7 on line 9
Process exited with code 255.