3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(idn_to_ascii( "beni&servizi", IDNA_USE_STD3_RULES | IDNA_NONTRANSITIONAL_TO_ASCII | IDNA_CHECK_CONTEXTJ, // todo use IDNA_CHECK_BIDI ? INTL_IDNA_VARIANT_UTS46, $info )); var_dump($info); $errors = [ "IDNA_ERROR_EMPTY_LABEL", "IDNA_ERROR_LABEL_TOO_LONG", "IDNA_ERROR_DOMAIN_NAME_TOO_LONG", "IDNA_ERROR_LEADING_HYPHEN", "IDNA_ERROR_TRAILING_HYPHEN", "IDNA_ERROR_HYPHEN_3_4", "IDNA_ERROR_LEADING_COMBINING_MARK", "IDNA_ERROR_DISALLOWED", "IDNA_ERROR_PUNYCODE", "IDNA_ERROR_LABEL_HAS_DOT", "IDNA_ERROR_INVALID_ACE_LABEL", "IDNA_ERROR_BIDI", "IDNA_ERROR_CONTEXTJ" ]; foreach($info['errors'] as $error){ foreach($errors as $chance){ $chanceE = constant($chance); if($error & $chanceE){ echo $chance . "\n"; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 35
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 35
Branch analysis from position: 22
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 33
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 33
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 32
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 32
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 33
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/TQMk6
function name:  (null)
number of ops:  37
compiled vars:  !0 = $info, !1 = $errors, !2 = $error, !3 = $chance, !4 = $chanceE
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL_BY_NAME                                       'idn_to_ascii'
    4     2        SEND_VAL_EX                                              'beni%26servizi'
    5     3        FETCH_CONSTANT                                   ~5      'IDNA_USE_STD3_RULES'
          4        FETCH_CONSTANT                                   ~6      'IDNA_NONTRANSITIONAL_TO_ASCII'
          5        BW_OR                                            ~7      ~5, ~6
          6        FETCH_CONSTANT                                   ~8      'IDNA_CHECK_CONTEXTJ'
          7        BW_OR                                            ~9      ~7, ~8
          8        SEND_VAL_EX                                              ~9
    6     9        FETCH_CONSTANT                                   ~10     'INTL_IDNA_VARIANT_UTS46'
         10        SEND_VAL_EX                                              ~10
    4    11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $11     
         13        SEND_VAR                                                 $11
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   12    18        ASSIGN                                                   !1, <array>
   28    19        FETCH_DIM_R                                      ~15     !0, 'errors'
         20      > FE_RESET_R                                       $16     ~15, ->35
         21    > > FE_FETCH_R                                               $16, !2, ->35
   29    22    > > FE_RESET_R                                       $17     !1, ->33
         23    > > FE_FETCH_R                                               $17, !3, ->33
   30    24    >   INIT_FCALL                                               'constant'
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                         $18     
         27        ASSIGN                                                   !4, $18
   31    28        BW_AND                                           ~20     !2, !4
         29      > JMPZ                                                     ~20, ->32
   32    30    >   CONCAT                                           ~21     !3, '%0A'
         31        ECHO                                                     ~21
   29    32    > > JMP                                                      ->23
         33    >   FE_FREE                                                  $17
   28    34      > JMP                                                      ->21
         35    >   FE_FREE                                                  $16
   35    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.37 ms | 1405 KiB | 20 Q