3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $db = new SQLite3('/home/hugo/wetter.db'); $results = $db->query('SELECT * FROM wetter_om2'); while ($row = $results->fetchArray()) { var_dump($row); } ?>
based on EHDMV
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: Unable to open database: unable to open database file in /in/OKA13:2 Stack trace: #0 /in/OKA13(2): SQLite3->__construct('/home/hugo/wett...') #1 {main} thrown in /in/OKA13 on line 2
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'Unable to open database: unable to open database file' in /in/OKA13:2 Stack trace: #0 /in/OKA13(2): SQLite3->__construct('/home/hugo/wett...') #1 {main} thrown in /in/OKA13 on line 2
Process exited with code 255.