3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dbhandle = sqlite_open('sqlitedb'); $result = sqlite_array_query($dbhandle, 'SELECT name, email FROM users LIMIT 25', SQLITE_ASSOC); foreach ($result as $entry) { echo 'Name: ' . $entry['name'] . ' E-mail: ' . $entry['email']; } ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function sqlite_open() in /in/X8hvR:2 Stack trace: #0 {main} thrown in /in/X8hvR on line 2
Process exited with code 255.
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
Fatal error: Call to undefined function sqlite_open() in /in/X8hvR on line 2
Process exited with code 255.
Output for 5.2.3 - 5.3.29
Warning: sqlite_open(): unable to open database: /sqlitedb in /in/X8hvR on line 2 Warning: sqlite_array_query() expects parameter 1 to be resource, string given in /in/X8hvR on line 3 Warning: Invalid argument supplied for foreach() in /in/X8hvR on line 4
Output for 5.0.0 - 5.2.2
Warning: sqlite_open(): unable to open database: /in/sqlitedb in /in/X8hvR on line 2 Warning: sqlite_array_query() expects parameter 1 to be resource, string given in /in/X8hvR on line 3 Warning: Invalid argument supplied for foreach() in /in/X8hvR on line 4
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: sqlite_open() in /in/X8hvR on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: sqlite_open() in /in/X8hvR on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: sqlite_open() in /in/X8hvR on line 2