3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $usr=(username); $pwd=(password); $sql = "SELECT username, password from users where (username = '".$usr."') and (password = '".$pwd."')"; sc_select(dataset, $sql); if (isset($dataset[0] [0])) { echo "Μπράβο"; } else // Record found { echo "Μπράβο"; //sc_redir(menu) }
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant username - assumed 'username' in /in/8s81m on line 2 Notice: Use of undefined constant password - assumed 'password' in /in/8s81m on line 3 Fatal error: Uncaught Error: Call to undefined function sc_select() in /in/8s81m:10 Stack trace: #0 {main} thrown in /in/8s81m on line 10
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Notice: Use of undefined constant username - assumed 'username' in /in/8s81m on line 2 Notice: Use of undefined constant password - assumed 'password' in /in/8s81m on line 3 Fatal error: Call to undefined function sc_select() in /in/8s81m on line 10
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant username - assumed 'username' in /in/8s81m on line 2 Notice: Use of undefined constant password - assumed 'password' in /in/8s81m on line 3 Fatal error: Call to undefined function: sc_select() in /in/8s81m on line 10
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant username - assumed 'username' in /in/8s81m on line 2 Notice: Use of undefined constant password - assumed 'password' in /in/8s81m on line 3 Fatal error: Call to undefined function: sc_select() in /in/8s81m on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant username - assumed 'username' in /in/8s81m on line 2 Notice: Use of undefined constant password - assumed 'password' in /in/8s81m on line 3 Fatal error: Call to undefined function: sc_select() in /in/8s81m on line 10