3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pdo = new PDO('sqlite::memory'); var_dump($pdo);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [14] unable to open database file in /in/hTltZ:3 Stack trace: #0 /in/hTltZ(3): PDO->__construct('sqlite::memory') #1 {main} thrown in /in/hTltZ on line 3
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [14] unable to open database file' in /in/hTltZ:3 Stack trace: #0 /in/hTltZ(3): PDO->__construct('sqlite::memory') #1 {main} thrown in /in/hTltZ on line 3
Process exited with code 255.