3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text="ála"; $split = mb_str_split($text); for ($d = 0; $d < count($split); $d++) { echo $split[$d] . '<br>'; } echo '<br>'; for($d=0;$d<mb_strlen($text);$d++) { echo $text[$d]; print "<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 = 14, Position 2 = 7
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 17
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 17
Branch analysis from position: 26
Branch analysis from position: 17
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/Vbn9g
function name:  (null)
number of ops:  27
compiled vars:  !0 = $text, !1 = $split, !2 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C3%A1la'
    5     1        INIT_FCALL                                               'mb_str_split'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    7     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->11
    8     7    >   FETCH_DIM_R                                      ~7      !1, !2
          8        CONCAT                                           ~8      ~7, '%3Cbr%3E'
          9        ECHO                                                     ~8
    7    10        PRE_INC                                                  !2
         11    >   COUNT                                            ~10     !1
         12        IS_SMALLER                                               !2, ~10
         13      > JMPNZ                                                    ~11, ->7
   11    14    >   ECHO                                                     '%3Cbr%3E'
   13    15        ASSIGN                                                   !2, 0
         16      > JMP                                                      ->21
   16    17    >   FETCH_DIM_R                                      ~13     !0, !2
         18        ECHO                                                     ~13
   17    19        ECHO                                                     '%3Cbr%3E'
   13    20        PRE_INC                                                  !2
         21    >   INIT_FCALL                                               'mb_strlen'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $15     
         24        IS_SMALLER                                               !2, $15
         25      > JMPNZ                                                    ~16, ->17
   19    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.52 ms | 1396 KiB | 17 Q