3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domain='rückführung-ins-licht.de'; if(preg_match('/[äöüß]/', $domain)){ echo "IDN"; $IDN = new idna_convert(array('idn_version' => 2008)); $domain = $IDN->encode($domain); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/Qv2Pf
function name:  (null)
number of ops:  16
compiled vars:  !0 = $domain, !1 = $IDN
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'r%C3%BCckf%C3%BChrung-ins-licht.de'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5B%C3%A4%C3%B6%C3%BC%C3%9F%5D%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5      > JMPZ                                                     $3, ->15
    4     6    >   ECHO                                                     'IDN'
    5     7        NEW                                              $4      'idna_convert'
          8        SEND_VAL_EX                                              <array>
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $4
    6    11        INIT_METHOD_CALL                                         !1, 'encode'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $7      
         14        ASSIGN                                                   !0, $7
    7    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.01 ms | 1394 KiB | 15 Q