3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['submit'])){ $fn = $_POST['firstname']; $ln = $_POST['lastname']; $e = $_POST['email']; $pn = $_POST['phonenumber']; $ui = $_POST['username']; $p = $_POST['password']; if($fn && $ln && $e && $pn && $ui && $p) { $sql = "INSERT INTO employee_details (first_name, last_name, email, phonenumber, username, password) VALUES ('$fn', '$ln', '$e', '$pn', '$ui', '$p')"; $stmt = mysqli_prepare($dbc, $sql); mysqli_stmt_execute($stmt); $affected_rows = mysqli_stmt_affected_rows($stmt); if($affected_rows == 1){ $body = "Thank you for registering. To activate your account, please click on this link:<br />"; $body = "http://localhost/mbactivate.php?x=" . mail($_POST['email'], 'Registration Confirmation', $body, 'From: derekbanas@verizon.net'); echo '<br /><br /><h3>Thank you for registering! A confirmation email has been sent to your address. Please click on the link in that email in order to activate your account.</h3>'; mysql_close(); exit(); } } }
Output for git.master, git.master_jit, rfc.property-hooks

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:
60.05 ms | 401 KiB | 8 Q