3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define(DB_HOST,"mysql.hostinger.com.ua"); define(DB_USER,"u417690548_lott"); define(DB_PASS,"198928ii"); define(DB_BASS,"u417690548_lott"); define(PAY,0.10); $link = mysqli_connect(DB_HOST,DB_USER,DB_PASS,DB_BASS) or die(mysqli_connect_errno()); mysqli_set_charset($link,'utf8'); ?>
based on VuKbT
Output for 7.2.0
Warning: Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in /in/tsTVe on line 2 Warning: Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in /in/tsTVe on line 3 Warning: Use of undefined constant DB_PASS - assumed 'DB_PASS' (this will throw an Error in a future version of PHP) in /in/tsTVe on line 4 Warning: Use of undefined constant DB_BASS - assumed 'DB_BASS' (this will throw an Error in a future version of PHP) in /in/tsTVe on line 5 Warning: Use of undefined constant PAY - assumed 'PAY' (this will throw an Error in a future version of PHP) in /in/tsTVe on line 6 Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /in/tsTVe:7 Stack trace: #0 {main} thrown in /in/tsTVe on line 7
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant DB_HOST - assumed 'DB_HOST' in /in/tsTVe on line 2 Notice: Use of undefined constant DB_USER - assumed 'DB_USER' in /in/tsTVe on line 3 Notice: Use of undefined constant DB_PASS - assumed 'DB_PASS' in /in/tsTVe on line 4 Notice: Use of undefined constant DB_BASS - assumed 'DB_BASS' in /in/tsTVe on line 5 Notice: Use of undefined constant PAY - assumed 'PAY' in /in/tsTVe on line 6 Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /in/tsTVe:7 Stack trace: #0 {main} thrown in /in/tsTVe on line 7
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Notice: Use of undefined constant DB_HOST - assumed 'DB_HOST' in /in/tsTVe on line 2 Notice: Use of undefined constant DB_USER - assumed 'DB_USER' in /in/tsTVe on line 3 Notice: Use of undefined constant DB_PASS - assumed 'DB_PASS' in /in/tsTVe on line 4 Notice: Use of undefined constant DB_BASS - assumed 'DB_BASS' in /in/tsTVe on line 5 Notice: Use of undefined constant PAY - assumed 'PAY' in /in/tsTVe on line 6 Fatal error: Call to undefined function mysqli_connect() in /in/tsTVe on line 7
Process exited with code 255.