3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
[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.2.3 - 7.1.0
[code] Warning: require_once(config.php): failed to open stream: No such file or directory in /in/XNHcn on line 2 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/XNHcn on line 2
Process exited with code 255.
Output for 5.1.0 - 5.2.2
[code]<br /> <b>Warning</b>: require_once(config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <b>/in/XNHcn</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'config.php' (include_path='.:') in <b>/in/XNHcn</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.4.3 - 5.0.5
[code]<br /> <b>Warning</b>: main(config.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/in/XNHcn</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: main() [<a href='function.require'>function.require</a>]: Failed opening required 'config.php' (include_path='.:') in <b>/in/XNHcn</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.2
[code]<br /> <b>Warning</b>: main(config.php): failed to open stream: No such file or directory in <b>/in/XNHcn</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: main(): Failed opening required 'config.php' (include_path='.:') in <b>/in/XNHcn</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
[code]<br /> <b>Warning</b>: main(config.php) [<a href='http://www.php.net/function.main'>function.main</a>]: failed to create stream: No such file or directory in <b>/in/XNHcn</b> on line <b>2</b><br /> <br /> <b>Fatal error</b>: main() [<a href='http://www.php.net/function.main'>function.main</a>]: Failed opening required 'config.php' (include_path='.:') in <b>/in/XNHcn</b> on line <b>2</b><br />