3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = 'ABBEKÅS'; echo 'word is '.$line.PHP_EOL; for($i=0;$i<strlen($line);$i++){ echo 'char '.$line[$i].PHP_EOL; } echo PHP_EOL; for($i=0;$i<mb_strlen($line);$i++){ echo 'char '.mb_substr($line, $i, 1).PHP_EOL; }
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 = 6
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 17
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 17
Branch analysis from position: 31
Branch analysis from position: 17
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/KKQX1
function name:  (null)
number of ops:  32
compiled vars:  !0 = $line, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ABBEK%C3%85S'
    4     1        CONCAT                                           ~3      'word+is+', !0
          2        CONCAT                                           ~4      ~3, '%0A'
          3        ECHO                                                     ~4
    5     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->11
    6     6    >   FETCH_DIM_R                                      ~6      !0, !1
          7        CONCAT                                           ~7      'char+', ~6
          8        CONCAT                                           ~8      ~7, '%0A'
          9        ECHO                                                     ~8
    5    10        PRE_INC                                                  !1
         11    >   STRLEN                                           ~10     !0
         12        IS_SMALLER                                               !1, ~10
         13      > JMPNZ                                                    ~11, ->6
    9    14    >   ECHO                                                     '%0A'
   11    15        ASSIGN                                                   !1, 0
         16      > JMP                                                      ->26
   12    17    >   INIT_FCALL                                               'mb_substr'
         18        SEND_VAR                                                 !0
         19        SEND_VAR                                                 !1
         20        SEND_VAL                                                 1
         21        DO_ICALL                                         $13     
         22        CONCAT                                           ~14     'char+', $13
         23        CONCAT                                           ~15     ~14, '%0A'
         24        ECHO                                                     ~15
   11    25        PRE_INC                                                  !1
         26    >   INIT_FCALL                                               'mb_strlen'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $17     
         29        IS_SMALLER                                               !1, $17
         30      > JMPNZ                                                    ~18, ->17
   13    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.72 ms | 1012 KiB | 15 Q