3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PDOx extends PDO { public function query(...$args) { if (count($args) !== 2) { return parent::query(...$args); } if (is_object($args[1])) { $args[1] = (array)$args[1]; } if (!is_array($args[1])) { return parent::query($args[0], $args[1]); } $stmt = self::prepare($args[0]); $stmt->execute($args[1]); return $stmt; } }
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of PDOx::query(...$args) should either be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/2Na69 on line 5

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:
29.49 ms | 401 KiB | 8 Q