3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new PDO('sqlite::memory:'); $db->exec(' CREATE TABLE messages ( id INTEGER PRIMARY KEY, message TEXT, updated_at DATETIME ) '); $insert = 'INSERT INTO messages (message, updated_at) VALUES (:message, :updated_at)'; $stmt = $db->prepare($insert); $stmt->bindParam(':message', 'hello'); $stmt->bindParam(':updated_at', '2013-03-03 03:33:03'); $stmt->execute();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: PDOStatement::bindParam(): Argument #2 ($var) cannot be passed by reference in /in/QFdQY:14 Stack trace: #0 {main} thrown in /in/QFdQY on line 14
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:
37.47 ms | 401 KiB | 8 Q