3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isValidEmail($email){ return filter_var($email, FILTER_VALIDATE_EMAIL); } $test = "test"; echo $test . " : " . isValidEmail($test); $test = "test'@gmail"; echo $test . " : " . isValidEmail($test); $test = "test@gamil.com"; echo $test . " : " . isValidEmail($test);

preferences:
37.83 ms | 402 KiB | 5 Q