3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $membre_id = ''; $membre_pseudo = mysql_real_escape_string($_POST['membre_pseudo']); $mdp = mysql_real_escape_string($_POST['mdp']); $email = mysql_real_escape_string($_POST['email']); $date_naissance = mysql_real_escape_string($_POST['date_naissance']); $sexe = mysql_real_escape_string($_POST['sexe']); $date_inscription = date("Y-m-d"); if ($req = $bdd->prepare ('INSERT INTO membres(membre_id, membre_pseudo, mdp, email, date_naissance, sexe, date_inscription) VALUES (membre_id, :membre_pseudo, :mdp, :email, :date_naissance, :sexe, :date_inscription)') $req->bindParam(':membre_id', $membre_id) && $req->bindParam(':membre_pseudo', $membre_pseudo) && $req->bindParam(':mdp', $mdp) && $req->bindParam(':email', $email) && $req->bindParam(':date_naissance', $date_naissance) && $req->bindParam(':sexe', $sexe) && $req->bindParam(':date_inscription', $date_inscription) && $req->execute() or exit(print_r($bdd->errorInfo())))
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '$req' (T_VARIABLE) in /in/8gCvk on line 13
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/8gCvk on line 13
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_VARIABLE in /in/8gCvk on line 13
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/8gCvk on line 13
Process exited with code 255.