3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con = mysql_connect("localhost","fazia_newadmin","salonspa!@#") or die("Could not Connect");mysql_select_db("fazia_newdb", $con); //$con = mysql_connect("localhost","root","") or die("Could not Connect");//mysql_select_db("salon", $con);extract($_REQUEST);//if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email))//{//$regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/'; //if (preg_match($regex, $email)) {if(filter_var($email, FILTER_VALIDATE_EMAIL)){ $sql = "select * from user where email_id='$email'"; $rsd = mysql_query($sql); $msg = mysql_num_rows($rsd); echo $msg; } else { echo "invalid"; } //echo $msg;//returns 0 if not already exist ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/dTLt7:1 Stack trace: #0 {main} thrown in /in/dTLt7 on line 1
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.25 ms | 401 KiB | 8 Q