3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
[code]<?php echo "//COD HTML" require_once('config.php'); $cerereSQL = 'SELECT * FROM news WHERE id="1" '; $rezultat = mysql_query($cerereSQL); while($rand = mysql_fetch_array($rezultat)) { echo $rand['nume'].' <br> '.$rand['data'].' <br> '.$rand['continut'].' <br>'; } echo "//REST DE COD HTML" ?>[/code]
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected 'require_once' (T_REQUIRE_ONCE), expecting ',' or ';' in /in/GNIY1 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected T_REQUIRE_ONCE, expecting ',' or ';' in /in/GNIY1 on line 5
Process exited with code 255.