3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = "edusegzy2@gmail.com"; $domain = explode("google.com",$email); $valid = checkdnsrr($domain[1], "ANY"); if($valid) echo "The domain has an MX record!"; else echo "Cannot locate MX record for $domain[1]!"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key 1 in /in/G6QDr on line 5 Deprecated: checkdnsrr(): Passing null to parameter #1 ($hostname) of type string is deprecated in /in/G6QDr on line 5 Fatal error: Uncaught ValueError: checkdnsrr(): Argument #1 ($hostname) cannot be empty in /in/G6QDr:5 Stack trace: #0 /in/G6QDr(5): checkdnsrr('', 'ANY') #1 {main} thrown in /in/G6QDr on line 5
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
71.46 ms | 401 KiB | 8 Q