3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$email = 'johnsnow@ヒキワリ.ナットウ.ニホン'; $email = 'JP納豆.例.jp'; $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; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LeD3m
function name:  (null)
number of ops:  13
compiled vars:  !0 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'JP%E7%B4%8D%E8%B1%86.%E4%BE%8B.jp'
    5     1        INIT_FCALL_BY_NAME                                       'idn_to_ascii'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    6     5        INIT_FCALL                                               'str_replace'
          6        SEND_VAL                                                 'xn--'
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    7    11        ECHO                                                     !0
   17    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.24 ms | 1394 KiB | 15 Q