3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = "bart.reymenants@gmail.c"; //Note the .com missing echo "PHP Version: ".phpversion().'<br>'; if(filter_var($email, FILTER_VALIDATE_EMAIL)){ echo "no "; echo $email.'<br>'; var_dump(filter_var($email, FILTER_VALIDATE_EMAIL)); }else{ echo "nok"; var_dump(filter_var($email, FILTER_VALIDATE_EMAIL)); } ?>

preferences:
34.99 ms | 406 KiB | 5 Q