3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mysqli = mysql_connect("mysql.s701.sureserver.com", "userconcurso2", "euskalencounter2017?", "seguridad_consurso2"); /* verificar la conexión */ if ($mysqli->connect_errno) { printf("Conexión fallida: %s\n", $mysqli->connect_error); exit(); } echo 'Conectado!!'; ?>
based on rhGlQ
Output for 7.0.0 - 7.3.0rc3
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/05pK1:3 Stack trace: #0 {main} thrown in /in/05pK1 on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Warning: mysql_connect(): Unknown MySQL server host 'mysql.s701.sureserver.com' (111) in /in/05pK1 on line 3 Notice: Cannot access property on non-object in /in/05pK1 on line 7 Conectado!!
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function mysql_connect() in /in/05pK1 on line 3
Process exited with code 255.