3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pdo = new pdo('sqlite::memory:', null, null, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); $pdo->exec('create table foo(a int)'); $pdo->exec('insert into foo values (1), (2), (3), (4)'); $sql = 'select a from foo group by a having a > 2'; $stmt = $pdo->prepare($sql); $stmt->execute(); var_dump($stmt->fetchAll());
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(2) { ["a"]=> int(3) [0]=> int(3) } [1]=> array(2) { ["a"]=> int(4) [0]=> int(4) } }

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