3v4l.org

run code in 300+ PHP versions simultaneously
[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/29M5v 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/29M5v on line 5
Process exited with code 255.

preferences:
170.25 ms | 1395 KiB | 39 Q