3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new SQLite3(':memory:'); $db->exec("CREATE TABLE foo (bar int)"); $db->exec("INSERT INTO foo VALUES (42)"); var_dump($db->querySingle("SELECT bar FROM foo"));
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.21, 7.4.0 - 7.4.9, 8.0.0alpha1 - beta1
int(42)