3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="Şef"; $str=utf8_encode($str); for($i = 0; $i < strlen($str); $i++) echo $str[$i] . "\n";
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 = 14, Position 2 = 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/argXA
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C5%9Eef'
    5     1        INIT_FCALL                                               'utf8_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    7     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->11
    8     7    >   FETCH_DIM_R                                      ~6      !0, !1
          8        CONCAT                                           ~7      ~6, '%0A'
          9        ECHO                                                     ~7
    7    10        PRE_INC                                                  !1
         11    >   STRLEN                                           ~9      !0
         12        IS_SMALLER                                               !1, ~9
         13      > JMPNZ                                                    ~10, ->7
    8    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
206.6 ms | 1386 KiB | 15 Q