3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $host="localhost"; // Host name $username="digidabb_sgs"; // Mysql username $password="Ala$ka49"; // Mysql password $db_name="digidabb_sgs_scores"; // Database name $dblink = mysql_connect("localhost","digidabb_sgs","Ala$ka49") or die('Error connecting.'); $seldb = mysql_select_db("digidabb_sgs_scores");
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: ka49 in /in/QDRJt on line 4 Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/QDRJt:7 Stack trace: #0 {main} thrown in /in/QDRJt on line 7
Process exited with code 255.
Output for 5.0.4 - 5.6.28
Notice: Undefined variable: ka49 in /in/QDRJt on line 4 Fatal error: Call to undefined function mysql_connect() in /in/QDRJt on line 7
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: ka49 in /in/QDRJt on line 4 Fatal error: Call to undefined function mysql_connect() in /in/QDRJt on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Notice: Undefined variable: ka49 in /in/QDRJt on line 4 Notice: Undefined variable: ka49 in /in/QDRJt on line 7 Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/QDRJt on line 7 Error connecting.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: ka49 in /in/QDRJt on line 4 Notice: Undefined variable: ka49 in /in/QDRJt on line 7 Warning: mysql_connect() [http://www.php.net/function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /in/QDRJt on line 7 Error connecting.