3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new SQLite3(':memory:'); $db->enableExceptions(true); $stmt = $db->prepare('SELECT :a, :b, ?;'); $a = 42; $stmt->bindParam(':a', $a, SQLITE3_INTEGER); $stmt->bindValue(':b', 'php'); $stmt->bindValue(':b', 'PHP'); $stmt->bindValue(3, 424242); echo "Execute statement\n"; var_dump($res = $stmt->execute()); echo "Statement result\n"; var_dump($res->fetchArray(SQLITE3_NUM)); //$stmt->reset(); echo "Change binded values\n"; $stmt->bindValue(':a', 'TEST'); $stmt->bindValue(':b', '!!!'); $stmt->bindValue(3, 40, SQLITE3_INTEGER); echo "Execute statement\n"; var_dump($res = $stmt->execute()); echo "Statement result\n"; var_dump($res->fetchArray(SQLITE3_NUM));
Output for git.master, git.master_jit, rfc.property-hooks
Execute statement object(SQLite3Result)#3 (0) { } Statement result array(3) { [0]=> int(42) [1]=> string(3) "PHP" [2]=> int(424242) } Change binded values Execute statement object(SQLite3Result)#4 (0) { } Statement result array(3) { [0]=> string(4) "TEST" [1]=> string(3) "!!!" [2]=> int(40) }

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:
61.37 ms | 401 KiB | 8 Q