3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array(1,2,3,4,5,6); $length = count($list); $columns = 2; for($column = 0; $column < $columns; $column++) { for($i = $column; $i < $length; $i=$i+$columns) { echo $list[$i]; } echo ' | '; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 8
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
Branch analysis from position: 6
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 8
Branch analysis from position: 14
Branch analysis from position: 8
filename:       /in/HPG3e
function name:  (null)
number of ops:  19
compiled vars:  !0 = $list, !1 = $length, !2 = $columns, !3 = $column, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~6      !0
          2        ASSIGN                                                   !1, ~6
    5     3        ASSIGN                                                   !2, 2
    7     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->16
    9     6    >   ASSIGN                                                   !4, !3
          7      > JMP                                                      ->12
   10     8    >   FETCH_DIM_R                                      ~11     !0, !4
          9        ECHO                                                     ~11
    9    10        ADD                                              ~12     !4, !2
         11        ASSIGN                                                   !4, ~12
         12    >   IS_SMALLER                                               !4, !1
         13      > JMPNZ                                                    ~14, ->8
   12    14    >   ECHO                                                     '+%7C+'
    7    15        PRE_INC                                                  !3
         16    >   IS_SMALLER                                               !3, !2
         17      > JMPNZ                                                    ~16, ->6
   13    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.01 ms | 1394 KiB | 13 Q