3v4l.org

run code in 300+ PHP versions simultaneously
<?php [code]<?php 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>'; } ?>[/code]
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected '?' in /in/ELe7l on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected '[' in /in/ELe7l on line 2
Process exited with code 255.

preferences:
170.48 ms | 1395 KiB | 39 Q