3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught PDOException: could not find driver in /in/8X91R:6 Stack trace: #0 /in/8X91R(6): PDO->__construct('sqlsrv:Server=t...', 'kizstudiosdb', Object(SensitiveParameterValue)) #1 {main} thrown in /in/8X91R on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
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 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 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.3.11, 4.4.0 - 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

preferences:
207.36 ms | 401 KiB | 328 Q