3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (!preg_match("^[a-zA-Z0-9.-_]+\@[a-zA-Z0-9.-_]\+.[a-zA-Z0-9.-_]+$",$email)); die ("Not a valid email format!");
Output for 5.0.4 - 5.6.30, 7.0.0 - 7.1.7
Notice: Undefined variable: email in /in/Qj0JD on line 3 Warning: preg_match(): No ending delimiter '^' found in /in/Qj0JD on line 3 Not a valid email format!
Output for hhvm-3.11.1 - 3.17.3
Notice: Undefined variable: email in /in/Qj0JD on line 3 Warning: preg_match() expects parameter 2 to be string, null given in /in/Qj0JD on line 3 Not a valid email format!
Output for hhvm-3.10.1
Notice: Undefined variable: email in /in/Qj0JD on line 3 Warning: No ending delimiter '^' found: [^[a-zA-Z0-9.-_]+\@[a-zA-Z0-9.-_]\+.[a-zA-Z0-9.-_]+$] in /in/Qj0JD on line 3 Not a valid email format!
Output for 4.3.11 - 5.0.3
Notice: Undefined variable: email in /in/Qj0JD on line 3 Warning: preg_match(): No ending delimiter '^' found in /in/Qj0JD on line 3 Not a valid email format!
Output for 4.3.0 - 4.3.10
Notice: Undefined variable: email in /in/Qj0JD on line 3 Warning: No ending delimiter '^' found in /in/Qj0JD on line 3 Not a valid email format!