3v4l.org

run code in 200+ PHP versions simultaneously
<?php $db = new SQLite3(':memory:'); $db->exec("CREATE TABLE foo (id int)"); $db->exec("INSERT INTO foo VALUES (1)"); var_dump($db->querySingle("SELECT id FROM foo"));
Output for 5.6.0 - 7.4.0
int(1)