3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new PDO("sqlite::memory:"); $db->exec('CREATE TABLE test_table (test_column TEXT)'); $stmt = $db->prepare('INSERT INTO test_table (test_column) VALUES (?)'); $stmt->execute(array("val1")); $stmt->execute(array("val2")); $stmt->execute(array("val3")); $result = $db->query("SELECT * FROM test_table ORDER BY test_column ASC", PDO::FETCH_ASSOC); foreach($result as $r) { var_dump($r); }
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["test_column"]=> string(4) "val1" } array(1) { ["test_column"]=> string(4) "val2" } array(1) { ["test_column"]=> string(4) "val3" }

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:
28.27 ms | 405 KiB | 5 Q