3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mass = str_split('0123'); $length = 6; foreach ($mass as $el) { for ($i = 1; $i <= $length; $i++) { echo $el; } echo '<br>'; }
based on t1lqU
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
Jump found. Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
Jump found. Position 1 = 12
Branch analysis from position: 12
Jump found. Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
Jump found. Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 9
Jump found. Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
Branch analysis from position: 9
Branch analysis from position: 16
Jump found. Position 1 = -2
Branch analysis from position: 16
filename:       /in/hShei
function name:  (null)
number of ops:  18
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, ->16
         6    > > FE_FETCH_R                                               $7, !2, ->16
   7     7    >   ASSIGN                                                   !3, 1
         8      > JMP                                                      ->12
   8     9    >   ECHO                                                     !2
   7    10        POST_INC                                         ~9      !3
        11        FREE                                                     ~9
        12    >   IS_SMALLER_OR_EQUAL                              ~10     !3, !1
        13      > JMPNZ                                                    ~10, ->9
  10    14    >   ECHO                                                     '%3Cbr%3E'
        15      > JMP                                                      ->6
        16    >   FE_FREE                                                  $7
        17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0