3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $naam = $_POST["naam"]; $_SESSION["naam"] = $naam; $age = $_POST["age"]; $_SESSION["age"] = $age; $mail = $_POST["mail"]; $_SESSION["mail"] = $mail; $ww = $_POST["ww"]; $_SESSION["ww"] = $ww; echo $mail; // sql query for INSERT INTO users $sql = "INSERT INTO `gebruikers` (`naam`, `email`, `wachtwoord`, 'leeftijd') VALUES ($naam, $mail, $ww, $age)"; $sql = "INSERT INTO `gebruikers` (`naam`, `email`, `wachtwoord`, 'leeftijd') VALUES ($naam, $mail, $ww, $age)"; ?>
Output for 5.3.0 - 7.1.0
Notice: Undefined index: naam in /in/gn8aH on line 2 Notice: Undefined index: age in /in/gn8aH on line 4 Notice: Undefined index: mail in /in/gn8aH on line 6 Notice: Undefined index: ww in /in/gn8aH on line 8
Output for 4.3.0 - 5.2.17
Notice: Undefined index: naam in /in/gn8aH on line 2 Notice: Undefined index: age in /in/gn8aH on line 4 Notice: Undefined index: mail in /in/gn8aH on line 6 Notice: Undefined index: ww in /in/gn8aH on line 8