3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'johnsnow@ヒキワリ.ナットウ.com'; $email = idn_to_ascii($email); echo $email; //$email = str_replace(array('xn--', '@-'), array('','@'), idn_to_ascii($email)); //echo $email;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F6ME1
function name:  (null)
number of ops:  7
compiled vars:  !0 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'johnsnow%40%E3%83%92%E3%82%AD%E3%83%AF%E3%83%AA.%E3%83%8A%E3%83%83%E3%83%88%E3%82%A6.com'
    4     1        INIT_FCALL_BY_NAME                                       'idn_to_ascii'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    5     5        ECHO                                                     !0
    9     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.29 ms | 1384 KiB | 13 Q