3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $email = 'johnsnow@ヒキワリ.ナットウ.ニホン'; //$email = idn_to_ascii($email); $email = str_replace('xn--', '', $email); echo $email; //echo "\n"; //$email = 'johnsnow@zoosk.com'; //$email = idn_to_ascii($email); //$email = str_replace('xn--', '', $email); //echo $email; ?>
Output for 4.3.0 - 7.2.0
johnsnow@ヒキワリ.ナットウ.ニホン