3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(null !==(mysql_query("SELECT polltitle FROM Activepoll ORDER BY `id` DESC LIMIT 1"))){ echo mysql_query("SELECT polltitle FROM Activepoll ORDER BY `id` DESC LIMIT 1"); else{echo "No active poll."}; } ?>
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'else' (T_ELSE) in /in/7aTmC on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ELSE in /in/7aTmC on line 5
Process exited with code 255.