3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new SQLite3(':memory:', SQLITE3_OPEN_READWRITE); $db->exec('CREATE TABLE test (id INTEGER NOT NULL PRIMARY KEY, val1 INTEGER, val2 INTEGER, CONSTRAINT "val1 or val2 must be specified" CHECK (val1 NOT NULL OR val2 NOT NULL))'); $db->exec('INSERT INTO test VALUES (NULL,NULL,NULL)'); echo 'lasterrormsg(): ', $db->lasterrormsg();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: SQLite3::exec(): CHECK constraint failed: val1 or val2 must be specified in /in/ErHCu on line 5 lasterrormsg(): CHECK constraint failed: val1 or val2 must be specified

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