3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r( dns_get_record( strtolower( 'friends.ahsanshahzad.com' ) ) ); // ip: 148.251.93.108 print_r( dns_get_record( strtolower( 'ahsanshahzad.com' ) ) ); // ip: 148.251.93.108 //print_r( dns_get_record( $punycode->encode( strtolower( 'adilzulfiqar.com' ) ) , DNS_A ) ); // ip: 148.251.93.108 //print_r( dns_get_record( $punycode->encode( strtolower( 'B├╝cher.de' ) ) , DNS_AAAA ) ); // ipv6: 148.251.93.108 //var_dump( checkdnsrr( 'pageconfig.com' , 'A' ) ); // bool true||false die;
Output for 5.5.24 - 7.2.0
Warning: dns_get_record(): A temporary server error occurred. in /in/oPBOJ on line 3 Warning: dns_get_record(): A temporary server error occurred. in /in/oPBOJ on line 4
Output for 5.3.2 - 5.4.45
Array ( ) Array ( )
Output for 5.3.1
Output for 5.0.0 - 5.3.0
Warning: dns_get_record(): res_nsend() failed in /in/oPBOJ on line 3 Warning: dns_get_record(): res_nsend() failed in /in/oPBOJ on line 4
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: dns_get_record() in /in/oPBOJ on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: dns_get_record() in /in/oPBOJ on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: dns_get_record() in /in/oPBOJ on line 3