3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "ok"; mysql_connect("pdb1.pretago.de:3306", "p1220", "raetzsee") or die(mysql_error()); ?>
Output for 7.0.0 - 7.1.0
ok Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/XaccQ:3 Stack trace: #0 {main} thrown in /in/XaccQ on line 3
Process exited with code 255.
Output for 5.0.0 - 5.6.28
ok Fatal error: Call to undefined function mysql_connect() in /in/XaccQ on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
ok Warning: mysql_connect(): Unknown MySQL Server Host 'pdb1.pretago.de' (0) in /in/XaccQ on line 3 Unknown MySQL Server Host 'pdb1.pretago.de' (0)
Output for 4.3.1
ok Warning: mysql_connect() [http://www.php.net/function.mysql-connect]: Unknown MySQL Server Host 'pdb1.pretago.de' (0) in /in/XaccQ on line 3 Unknown MySQL Server Host 'pdb1.pretago.de' (0)
Output for 4.3.0
ok Warning: mysql_connect() [http://www.php.net/function.mysql-connect]: Unknown MySQL Server Host 'pdb1.pretago.de' (11) in /in/XaccQ on line 3 Unknown MySQL Server Host 'pdb1.pretago.de' (11)