3v4l.org

run code in 300+ PHP versions simultaneously
<?php $labels_array = array("Element1","Element2","Element3","Element4","Element5","Element6"); for($i=0;$i<count($labels_array);$i++) { echo($labels_array[$i]); if($i % 1 == 0) { echo("\n"); }else{echo(",");} } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/J5AUe
function name:  (null)
number of ops:  16
compiled vars:  !0 = $labels_array, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->12
    5     3    >   FETCH_DIM_R                                      ~4      !0, !1
          4        ECHO                                                     ~4
    6     5        MOD                                              ~5      !1, 1
          6        IS_EQUAL                                                 ~5, 0
          7      > JMPZ                                                     ~6, ->10
    8     8    >   ECHO                                                     '%0A'
          9      > JMP                                                      ->11
    9    10    >   ECHO                                                     '%2C'
    4    11    >   PRE_INC                                                  !1
         12    >   COUNT                                            ~8      !0
         13        IS_SMALLER                                               !1, ~8
         14      > JMPNZ                                                    ~9, ->3
   11    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.64 ms | 1393 KiB | 13 Q