3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $host = "akmaliah.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 lL4L3
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/vIo8C:7 Stack trace: #0 {main} thrown in /in/vIo8C 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/vIo8C on line 7
Process exited with code 255.