3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new \PDO("sqlite::memory:"); $db->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); $db->exec('attach database \':memory:\' AS "db1"'); var_dump($db->exec('create table db1.r (id int)')); $st = $db->prepare('attach database :a AS "db2"'); $st->execute([':a' => ':memory:']); var_dump($db->exec('create table db2.r (id int)'));
Output for git.master_jit, git.master, rfc.property-hooks
int(0) Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 23 not authorized in /in/Su8lK:9 Stack trace: #0 /in/Su8lK(9): PDO->prepare('attach database...') #1 {main} thrown in /in/Su8lK on line 9
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:
121.37 ms | 405 KiB | 5 Q