3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("DB_HOST", "sql2.webzdarma.cz"); define("DB_USER", "taxidiary.wz6133"); define("DB_PASSWORD", "v6ir53b3"); define("DB_DATABASE", "taxidiary.wz6133"); $conn = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if(!mysql_select_db(DB_DATABASE)) { print "Připojení k DB selhalo..."; } $selected_db = mysql_select_db("jizdy", $conn); if(!$selefcted_db) { echo "DB not found"; }
based on SLCtJ
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/TOXun:7 Stack trace: #0 {main} thrown in /in/TOXun on line 7
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function mysql_connect() in /in/TOXun on line 7
Process exited with code 255.