3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pdo = new PDO( 'sqlite::memory:' ) ; $res = $pdo->query( 'SELECT SQLITE_VERSION()' ) ; print_r( $res->fetchColumn() ) ;
Output for 7.2.0 - 7.2.6
3.20.1
Output for 7.1.0 - 7.1.20
3.15.1
Output for 7.0.14 - 7.0.20
3.14.2
Output for 5.4.42 - 5.4.45, 5.5.26 - 5.5.35, 5.6.10 - 7.0.6
3.8.10.2
Output for 5.5.24 - 5.5.25, 5.6.8 - 5.6.9
3.8.8.3
Output for 5.3.7 - 5.4.41
3.7.7.1
Output for 5.3.6
3.7.4
Output for 5.3.4 - 5.3.5
3.7.3
Output for 5.3.3
3.6.23.1
Output for 5.3.2
3.6.22
Output for 5.3.1
3.6.19
Output for 5.3.0
3.6.15
Output for 5.2.0 - 5.2.1, 5.2.6 - 5.2.17
3.3.7
Output for 5.2.3 - 5.2.5
3.3.17
Output for 5.2.2
3.3.16
Output for 5.1.4 - 5.1.6
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /in/5afsf:3 Stack trace: #0 /in/5afsf(3): PDO->__construct('sqlite::memory:') #1 {main} thrown in /in/5afsf on line 3
Process exited with code 255.
Output for 5.1.2 - 5.1.3
3.2.8
Output for 5.1.0 - 5.1.1
3.2.7
Output for 5.0.0 - 5.0.5
Fatal error: Class 'PDO' not found in /in/5afsf on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: pdo in /in/5afsf on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: pdo in /in/5afsf on line 3