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 'active' (T_STRING), expecting ',' or ';' in /in/Tkq3o on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/Tkq3o on line 6
Process exited with code 255.