3v4l.org

run code in 300+ PHP versions simultaneously
<?php $conn = new PDO('sqlite::memory:'); $conn->exec('CREATE TABLE php81_test (test_int INTEGER NOT NULL, test_decimal NUMERIC(10, 2) DEFAULT NULL, PRIMARY KEY(test_int))'); $conn->exec('INSERT INTO php81_test (test_int, test_decimal) VALUES (1, 1.55)'); $stmt = $conn->query('SELECT * FROM php81_test'); var_dump($stmt->fetch(PDO::FETCH_ASSOC)); $stmt = $conn->query('PRAGMA table_info(php81_test)'); var_dump($stmt->fetch(PDO::FETCH_ASSOC));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { ["test_int"]=> int(1) ["test_decimal"]=> float(1.55) } array(6) { ["cid"]=> int(0) ["name"]=> string(8) "test_int" ["type"]=> string(7) "INTEGER" ["notnull"]=> int(1) ["dflt_value"]=> NULL ["pk"]=> int(1) }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
29.75 ms | 401 KiB | 8 Q