3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $host = "akmliah.net:3306"; $username = "mysql"; $password = "12345"; $database = "db_salikin"; $conn = mysql_connect("$host","$username","$password"); if (!$conn) die ("Gagal Melakukan Koneksi"); mysql_select_db($database,$conn) or die ("Database Tidak Diketemukan di Server"); ?>
based on YE9BO
Output for 7.0.0 - 7.3.0rc4
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/lL4L3:7 Stack trace: #0 {main} thrown in /in/lL4L3 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/lL4L3 on line 7
Process exited with code 255.