3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pdo = new PDO('sqlite::memory:'); $pdo->exec("CREATE TABLE foo (id int)"); $pdo->exec("INSERT INTO foo VALUES (1)"); $stmt = $pdo->query("SELECT id FROM foo"); var_dump($stmt->fetchColumn(0));
based on IhSPf
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.22.0, 7.0.0 - 7.3.1
string(1) "1"