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'); $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 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 20
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 20
Branch analysis from position: 30
Branch analysis from position: 20
filename:       /in/0F9Ag
function name:  (null)
number of ops:  31
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                                                 
   10    15        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    16        STRLEN                                           ~9      !0
         17        ASSIGN                                                   !1, ~9
   14    18        ASSIGN                                                   !2, 0
         19      > JMP                                                      ->28
   15    20    >   INIT_FCALL                                               'mb_substr'
         21        SEND_VAR                                                 !0
         22        SEND_VAR                                                 !2
         23        SEND_VAL                                                 1
         24        DO_ICALL                                         $12     
         25        CONCAT                                           ~13     $12, '%7C'
         26        ECHO                                                     ~13
   14    27        PRE_INC                                                  !2
         28    >   IS_SMALLER                                               !2, !1
         29      > JMPNZ                                                    ~15, ->20
   16    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.83 ms | 1396 KiB | 25 Q