3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Create the table and insert the data $db = new SQLite3('/tmp/Nao.db'); $db->query('CREATE TABLE ta10 (id INT(6))'); $db->query('INSERT INTO ta10 VALUES (123)'); // Your code $db = new SQLite3('/tmp/Nao.db'); $result = $db->query('SELECT * FROM ta10'); var_dump($result->fetchArray());
based on o25XD
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.2.8
array(2) { [0]=> int(123) ["id"]=> int(123) }