3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
Branch analysis from position: 5
filename:       /in/slmsH
function name:  (null)
number of ops:  16
compiled vars:  !0 = $chars, !1 = $len, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   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'
    4     1        STRLEN                                           ~4      !0
          2        ASSIGN                                                   !1, ~4
    6     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->13
    7     5    >   INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $7      
         10        CONCAT                                           ~8      $7, '%7C'
         11        ECHO                                                     ~8
    6    12        PRE_INC                                                  !2
         13    >   IS_SMALLER                                               !2, !1
         14      > JMPNZ                                                    ~10, ->5
    8    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.11 ms | 1395 KiB | 15 Q