3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(($connect = mysql_connect(HOST, USER, PASS)) == false) { echo '<h1>Er kan geen verbinding gemaakt worden met de host</h1>'; } ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/C01T6:2 Stack trace: #0 {main} thrown in /in/C01T6 on line 2
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function mysql_connect() in /in/C01T6 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Notice: Use of undefined constant HOST - assumed 'HOST' in /in/C01T6 on line 2 Notice: Use of undefined constant USER - assumed 'USER' in /in/C01T6 on line 2 Notice: Use of undefined constant PASS - assumed 'PASS' in /in/C01T6 on line 2 Warning: mysql_connect(): Unknown MySQL Server Host 'HOST' (0) in /in/C01T6 on line 2 <h1>Er kan geen verbinding gemaakt worden met de host</h1>
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant HOST - assumed 'HOST' in /in/C01T6 on line 2 Notice: Use of undefined constant USER - assumed 'USER' in /in/C01T6 on line 2 Notice: Use of undefined constant PASS - assumed 'PASS' in /in/C01T6 on line 2 Warning: mysql_connect() [http://www.php.net/function.mysql-connect]: Unknown MySQL Server Host 'HOST' (0) in /in/C01T6 on line 2 <h1>Er kan geen verbinding gemaakt worden met de host</h1>