3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php try{ $vt = new PDO('mysql:host=localhost;dbname=makale','root',''); } catch(PDOException $a){ echo $a->getMessage(); } $Veri = $vt->query("SELECT * FROM cek where id=''")->fetch(); echo $Veri["baslık"]; ?>
Output for 7.0.5 - 7.1.0
could not find driver Notice: Undefined variable: vt in /in/YrDdi on line 11 Fatal error: Uncaught Error: Call to a member function query() on null in /in/YrDdi:11 Stack trace: #0 {main} thrown in /in/YrDdi on line 11
Process exited with code 255.
Output for 7.0.0 - 7.0.4
could not find driver Notice: Undefined variable: vt in /in/YrDdi on line 11 Fatal error: Uncaught Error: Call to a member function query() on unknown in /in/YrDdi:11 Stack trace: #0 {main} thrown in /in/YrDdi on line 11
Process exited with code 255.
Output for 5.6.7 - 5.6.28
could not find driver Notice: Undefined variable: vt in /in/YrDdi on line 11 Fatal error: Call to a member function query() on null in /in/YrDdi on line 11
Process exited with code 255.
Output for 5.1.0 - 5.5.35
could not find driver Notice: Undefined variable: vt in /in/YrDdi on line 11 Fatal error: Call to a member function query() on a non-object in /in/YrDdi on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Class 'PDO' not found in /in/YrDdi on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/YrDdi on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/YrDdi on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/YrDdi on line 4
Process exited with code 255.