3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php define("DB_SERVER", "sqlsrv:Server=tcp:te5s00t4wb.database.windows.net,1433;Database=gamescom2014"); define("DB_USER", "kizstudiosdb"); define("DB_PASSWORD", "Kizlash123"); $connection = new PDO(DB_SERVER, DB_USER, DB_PASSWORD); var_dump($connection); exit;
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught PDOException: could not find driver in /in/8X91R:6 Stack trace: #0 /in/8X91R(6): PDO->__construct('sqlsrv:Server=t...', 'kizstudiosdb', 'Kizlash123') #1 {main} thrown in /in/8X91R on line 6
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /in/8X91R:6 Stack trace: #0 /in/8X91R(6): PDO->__construct() #1 {main}
Process exited with code 255.
Output for 5.1.0 - 5.6.28
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /in/8X91R:6 Stack trace: #0 /in/8X91R(6): PDO->__construct('sqlsrv:Server=t...', 'kizstudiosdb', 'Kizlash123') #1 {main} thrown in /in/8X91R on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Class 'PDO' not found in /in/8X91R on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: pdo in /in/8X91R on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: pdo in /in/8X91R on line 6