3v4l.org

run code in 500+ PHP versions simultaneously
<?php function chk($a,$b){ mb_regex_encoding('SJIS-win'); $j=0; for($i=$a;$i<$b;$i++){ $s=sprintf('%x',$i); $hex = hex2bin($s); if(mb_check_encoding($hex)){ if (!mb_ereg($hex, $hex)){ echo "$s($hex):NG\n"; } }else{ } $j++; } echo "cnt:$j\n"; } chk(0xED40,0xFC51);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SYRJP
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                                   'chk'
          1        SEND_VAL                                                     60736
          2        SEND_VAL                                                     64593
          3        DO_FCALL                                          0          
          4      > RETURN                                                       1

Function chk:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 8
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 33
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 32
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 8
Branch analysis from position: 37
Branch analysis from position: 8
Branch analysis from position: 32
Branch analysis from position: 33
filename:       /in/SYRJP
function name:  chk
number of ops:  42
compiled vars:  !0 = $a, !1 = $b, !2 = $j, !3 = $i, !4 = $s, !5 = $hex
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    4     2        INIT_FCALL                                                   'mb_regex_encoding'
          3        SEND_VAL                                                     'SJIS-win'
          4        DO_ICALL                                                     
    5     5        ASSIGN                                                       !2, 0
    6     6        ASSIGN                                                       !3, !0
          7      > JMP                                                          ->35
    7     8    >   INIT_FCALL                                                   'sprintf'
          9        SEND_VAL                                                     '%25x'
         10        SEND_VAR                                                     !3
         11        DO_ICALL                                             $9      
         12        ASSIGN                                                       !4, $9
    8    13        INIT_FCALL                                                   'hex2bin'
         14        SEND_VAR                                                     !4
         15        DO_ICALL                                             $11     
         16        ASSIGN                                                       !5, $11
    9    17        INIT_FCALL                                                   'mb_check_encoding'
         18        SEND_VAR                                                     !5
         19        DO_ICALL                                             $13     
         20      > JMPZ                                                         $13, ->33
   10    21    >   INIT_FCALL                                                   'mb_ereg'
         22        SEND_VAR                                                     !5
         23        SEND_VAR                                                     !5
         24        DO_ICALL                                             $14     
         25        BOOL_NOT                                             ~15     $14
         26      > JMPZ                                                         ~15, ->32
   11    27    >   ROPE_INIT                                         4  ~17     !4
         28        ROPE_ADD                                          1  ~17     ~17, '%28'
         29        ROPE_ADD                                          2  ~17     ~17, !5
         30        ROPE_END                                          3  ~16     ~17, '%29%3ANG%0A'
         31        ECHO                                                         ~16
    9    32    > > JMP                                                          ->33
   15    33    >   PRE_INC                                                      !2
    6    34        PRE_INC                                                      !3
         35    >   IS_SMALLER                                                   !3, !1
         36      > JMPNZ                                                        ~21, ->8
   17    37    >   ROPE_INIT                                         3  ~23     'cnt%3A'
         38        ROPE_ADD                                          1  ~23     ~23, !2
         39        ROPE_END                                          2  ~22     ~23, '%0A'
         40        ECHO                                                         ~22
   18    41      > RETURN                                                       null

End of function chk

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.42 ms | 3324 KiB | 18 Q