3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/plain'); $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 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 10
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 10
Branch analysis from position: 17
Branch analysis from position: 10
filename:       /in/6Ib7l
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 >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fplain'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, '%C5%9Eef'
    7     4        INIT_FCALL                                               'utf8_encode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    9     8        ASSIGN                                                   !1, 0
          9      > JMP                                                      ->14
   10    10    >   FETCH_DIM_R                                      ~7      !0, !1
         11        CONCAT                                           ~8      ~7, '%0A'
         12        ECHO                                                     ~8
    9    13        PRE_INC                                                  !1
         14    >   STRLEN                                           ~10     !0
         15        IS_SMALLER                                               !1, ~10
         16      > JMPNZ                                                    ~11, ->10
   10    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.62 ms | 1399 KiB | 17 Q