3v4l.org

run code in 300+ PHP versions simultaneously
<?php $large_array = range(0, 250001); $db = new PDO('sqlite::memory:'); $placeholders = implode(', ', array_fill(0, count($large_array), '?')); $stmt = $db->prepare("SELECT 1 WHERE 42 IN ($placeholders)"); var_dump($stmt->execute($large_array));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 7 out of memory in /in/oke3S:7 Stack trace: #0 /in/oke3S(7): PDO->prepare('SELECT 1 WHERE ...') #1 {main} thrown in /in/oke3S on line 7
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:
52.93 ms | 401 KiB | 8 Q