3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Set internal character encoding to UTF-8 */ mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); mb_http_input('UTF-8'); mb_language('uni'); mb_regex_encoding('UTF-8'); ob_start('mb_output_handler'); $chars = '안녕하세요ABCDEFGHIJKLMNOPQRSTUVWXYZ안녕하세요'; $len = strlen($chars); for ($i = 0; $i < $len; $i++) { echo mb_substr($chars,$i,1).'|'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 23
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 23
Branch analysis from position: 33
Branch analysis from position: 23
filename:       /in/TF3s5
function name:  (null)
number of ops:  34
compiled vars:  !0 = $chars, !1 = $len, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'mb_http_output'
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'mb_http_input'
          7        SEND_VAL                                                 'UTF-8'
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'mb_language'
         10        SEND_VAL                                                 'uni'
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'mb_regex_encoding'
         13        SEND_VAL                                                 'UTF-8'
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'ob_start'
         16        SEND_VAL                                                 'mb_output_handler'
         17        DO_ICALL                                                 
   10    18        ASSIGN                                                   !0, '%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94ABCDEFGHIJKLMNOPQRSTUVWXYZ%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94'
   12    19        STRLEN                                           ~10     !0
         20        ASSIGN                                                   !1, ~10
   14    21        ASSIGN                                                   !2, 0
         22      > JMP                                                      ->31
   15    23    >   INIT_FCALL                                               'mb_substr'
         24        SEND_VAR                                                 !0
         25        SEND_VAR                                                 !2
         26        SEND_VAL                                                 1
         27        DO_ICALL                                         $13     
         28        CONCAT                                           ~14     $13, '%7C'
         29        ECHO                                                     ~14
   14    30        PRE_INC                                                  !2
         31    >   IS_SMALLER                                               !2, !1
         32      > JMPNZ                                                    ~16, ->23
   16    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.67 ms | 1396 KiB | 27 Q