3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domain = 'xn--kristianlfvenholm-7zb.se'; $hostname = idn_to_utf8($domain); $hostname2 = utf8_decode( idn_to_utf8($domain) ); echo $hostname ."<br/>"; echo $hostname2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DL67v
function name:  (null)
number of ops:  16
compiled vars:  !0 = $domain, !1 = $hostname, !2 = $hostname2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'xn--kristianlfvenholm-7zb.se'
    4     1        INIT_FCALL_BY_NAME                                       'idn_to_utf8'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL                                               'utf8_decode'
          6        INIT_FCALL_BY_NAME                                       'idn_to_utf8'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    7    12        CONCAT                                           ~9      !1, '%3Cbr%2F%3E'
         13        ECHO                                                     ~9
    8    14        ECHO                                                     !2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.46 ms | 1394 KiB | 18 Q