3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "သဥ℃ဢ"; for ($i = 0; $i < mb_strlen($str); $i++) { var_dump(mb_substr($str, $i, 1)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
filename:       /in/n0P5I
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E1%80%9E%E1%80%A5%E2%84%83%E1%80%A2'
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->12
    5     3    >   INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'mb_substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
    4    11        PRE_INC                                                  !1
         12    >   INIT_FCALL                                               'mb_strlen'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        IS_SMALLER                                               !1, $7
         16      > JMPNZ                                                    ~8, ->3
    6    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.26 ms | 1395 KiB | 19 Q