run code in 300+ PHP versions simultaneously
<?php $dbh = new PDO("sqlite::memory:", "", "", [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); $dbh->exec("CREATE TABLE fruits (name TEXT, color TEXT)"); $dbh->exec("INSERT INTO fruits VALUES('banana', 'yellow')"); $sql = "SELECT * FROM fruits WHERE name = :name AND color = ?"; $sth = $dbh->prepare($sql); $sth->execute(["banana", "yellow"]); var_dump($sth->fetchAll());
Output for git.master, git.master_jit
array(1) { [0]=> array(4) { ["name"]=> string(6) "banana" [0]=> string(6) "banana" ["color"]=> string(6) "yellow" [1]=> string(6) "yellow" } }

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

13.04 ms | 409 KiB | 5 Q