3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "Complete:\n"; $email = "clifton@example.com"; if(filter_var($email, FILTER_VALIDATE_EMAIL)){ echo $email.."\n"; var_dump(filter_var($email, FILTER_VALIDATE_EMAIL)); }else{ var_dump(filter_var($email, FILTER_VALIDATE_EMAIL)); } echo "\n\nIncomplete:\n"; $email = "clifton@example"; if(filter_var($email, FILTER_VALIDATE_EMAIL)){ echo $email.."\n"; var_dump(filter_var($email, FILTER_VALIDATE_EMAIL)); }else{ var_dump(filter_var($email, FILTER_VALIDATE_EMAIL)); }
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected '.' in /in/U2nSf on line 5
Process exited with code 255.