3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mass = str_split('0123'); $length = 6; foreach ($mass as $el) { for ($i = 1; $i <= $length; $i++) { echo $el; } echo '<br>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 9
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 9
Branch analysis from position: 13
Branch analysis from position: 9
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/hShei
function name:  (null)
number of ops:  17
compiled vars:  !0 = $mass, !1 = $length, !2 = $el, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_split'
          1        SEND_VAL                                                 '0123'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        ASSIGN                                                   !1, 6
    6     5      > FE_RESET_R                                       $7      !0, ->15
          6    > > FE_FETCH_R                                               $7, !2, ->15
    7     7    >   ASSIGN                                                   !3, 1
          8      > JMP                                                      ->11
    8     9    >   ECHO                                                     !2
    7    10        PRE_INC                                                  !3
         11    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         12      > JMPNZ                                                    ~10, ->9
   10    13    >   ECHO                                                     '%3Cbr%3E'
    6    14      > JMP                                                      ->6
         15    >   FE_FREE                                                  $7
   11    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.29 ms | 1386 KiB | 15 Q