3v4l.org

run code in 300+ PHP versions simultaneously
<?php use PDO; interface Connection { function prepare($statement); } class PDOConnection extends PDO implements Connection { public function __construct($dsn, $user = null, $password = null, array $options = null) { parent::__construct($dsn, $user, $password, $options); } } new PDOConnection('sqlite::memory:');
Output for git.master, git.master_jit, rfc.property-hooks
Warning: The use statement with non-compound name 'PDO' has no effect in /in/qOP06 on line 2 Fatal error: Declaration of PDO::prepare(string $query, array $options = []): PDOStatement|false must be compatible with Connection::prepare($statement) in /in/qOP06 on line 0
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:
39.94 ms | 401 KiB | 8 Q