3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Şef"; for ($i = 0; $i < iconv_strlen($str); $i++) { echo iconv_substr($str, $i, 1).'<br>'; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
filename:       /in/SgU4t
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C5%9Eef'
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->11
    6     3    >   INIT_FCALL_BY_NAME                                       'iconv_substr'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        SEND_VAL_EX                                              1
          7        DO_FCALL                                      0  $4      
          8        CONCAT                                           ~5      $4, '%3Cbr%3E'
          9        ECHO                                                     ~5
    5    10        PRE_INC                                                  !1
         11    >   INIT_FCALL_BY_NAME                                       'iconv_strlen'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $7      
         14        IS_SMALLER                                               !1, $7
         15      > JMPNZ                                                    ~8, ->3
    7    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.61 ms | 1394 KiB | 19 Q