3v4l.org

run code in 200+ PHP versions simultaneously
<?php $domain = 'sdlkfjsdl.gov'; if (gethostbyname($domain) == $domain) { var_dump(checkdnsrr($domain)); var_dump(getmxrr($domain, $mxhosts)); var_dump($mxhosts); } else { echo 'Domain exists'; }
Output for 4.3.0 - 7.2.6
bool(false) bool(false) array(0) { }