3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'xn--kodazaklad-z9b.si'; $str2 = 'škodazaklad'; echo mb_detect_encoding($str, 'UTF-8', true); echo idn_to_utf8($str2); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OBcfX
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'xn--kodazaklad-z9b.si'
    4     1        ASSIGN                                                   !1, '%C5%A1kodazaklad'
    6     2        INIT_FCALL                                               'mb_detect_encoding'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'UTF-8'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
    8     8        INIT_FCALL_BY_NAME                                       'idn_to_utf8'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0  $5      
         11        ECHO                                                     $5
   11    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.83 ms | 1394 KiB | 18 Q