3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.1.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: require_once(config.php): failed to open stream: No such file or directory in /in/4aojs on line 2 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/4aojs on line 2
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Uncaught Error: File not found: config.php in /in/4aojs:2 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: File not found: config.php in /in/4aojs on line 2
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: main(config.php): failed to open stream: No such file or directory in /in/4aojs on line 2 Fatal error: main(): Failed opening required 'config.php' (include_path='.:') in /in/4aojs on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(config.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/4aojs on line 2 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'config.php' (include_path='.:') in /in/4aojs on line 2