3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'test@io'; var_dump((substr_count($email, '@') === 1) && (checkdnsrr(substr($email, strpos($email, '@'))) || checkdnsrr(substr($email, strpos($email, '@')), 'A')));

preferences:
44.51 ms | 402 KiB | 5 Q