3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Set internal character encoding to UTF-8 */ mb_internal_encoding("UTF-8"); $chars = '안녕하세요ABCDEFGHIJKLMNOPQRSTUVWXYZ안녕하세요'; $len = strlen($chars); for ($i = 0; $i < $len; $i++) { echo substr($chars,$i,1).'|'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
Branch analysis from position: 8
filename:       /in/SLRLO
function name:  (null)
number of ops:  19
compiled vars:  !0 = $chars, !1 = $len, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    5     3        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'
    7     4        STRLEN                                           ~5      !0
          5        ASSIGN                                                   !1, ~5
    9     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->16
   10     8    >   INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $8      
         13        CONCAT                                           ~9      $8, '%7C'
         14        ECHO                                                     ~9
    9    15        PRE_INC                                                  !2
         16    >   IS_SMALLER                                               !2, !1
         17      > JMPNZ                                                    ~11, ->8
   11    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.43 ms | 1395 KiB | 17 Q