3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new PDO('sqlite::memory:', '', '', array(PDO::ATTR_PERSISTENT => true)); $db->beginTransaction(); $st = $db->query('select 1'); echo $st->fetchColumn()."\n"; $db->commit(); //$st = null; $db = new PDO('sqlite::memory:', '', '', array(PDO::ATTR_PERSISTENT => true)); $db->beginTransaction(); $st = $db->query('select 2'); echo $st->fetchColumn()."\n"; $db->commit();
Output for git.master, git.master_jit, rfc.property-hooks
1 2 Fatal error: Uncaught PDOException: There is no active transaction in /in/iTsHt:13 Stack trace: #0 /in/iTsHt(13): PDO->commit() #1 {main} thrown in /in/iTsHt on line 13
Process exited with code 255.

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