3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'россия.рф ' . 'xn--h1alffa9f.xn--p1ai' . "\n"; echo 'россия.рф ' . 'xn--h1alffa9f.xn--p1ai' . "\n"; echo 'россия.рф ' . idn_to_ascii('россия.рф') . "\n"; echo 'россия.рф ' . idn_to_ascii('россия.рф', 0, INTL_IDNA_VARIANT_UTS46) . "\n"; echo 'jejforetik_nizhniy-novgorod.eurobro.biz ' . idn_to_ascii('jejforetik_nizhniy-novgorod.eurobro.biz') . "\n";
based on BKIR9
Output for 7.3.0alpha1
россия.рф xn--h1alffa9f.xn--p1ai россия.рф xn--h1alffa9f.xn--p1ai Fatal error: Uncaught Error: Call to undefined function idn_to_ascii() in /in/27FAQ:4 Stack trace: #0 {main} thrown in /in/27FAQ on line 4
Process exited with code 255.
Output for 7.2.0 - 7.2.6
россия.рф xn--h1alffa9f.xn--p1ai россия.рф xn--h1alffa9f.xn--p1ai Deprecated: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in /in/27FAQ on line 4 россия.рф xn--h1alffa9f.xn--p1ai россия.рф xn--h1alffa9f.xn--p1ai Deprecated: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in /in/27FAQ on line 6 jejforetik_nizhniy-novgorod.eurobro.biz jejforetik_nizhniy-novgorod.eurobro.biz
Output for 5.6.0 - 7.1.7
россия.рф xn--h1alffa9f.xn--p1ai россия.рф xn--h1alffa9f.xn--p1ai россия.рф xn--h1alffa9f.xn--p1ai россия.рф xn--h1alffa9f.xn--p1ai jejforetik_nizhniy-novgorod.eurobro.biz jejforetik_nizhniy-novgorod.eurobro.biz