3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = range(0, 10000); $length = count($list); $columns = 4; 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 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 10
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 12
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 10
Branch analysis from position: 22
Branch analysis from position: 10
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 12
Branch analysis from position: 18
Branch analysis from position: 12
filename:       /in/qGLt1
function name:  (null)
number of ops:  23
compiled vars:  !0 = $list, !1 = $length, !2 = $columns, !3 = $column, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 10000
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    4     5        COUNT                                            ~7      !0
          6        ASSIGN                                                   !1, ~7
    5     7        ASSIGN                                                   !2, 4
    7     8        ASSIGN                                                   !3, 0
          9      > JMP                                                      ->20
    9    10    >   ASSIGN                                                   !4, !3
         11      > JMP                                                      ->16
   10    12    >   FETCH_DIM_R                                      ~12     !0, !4
         13        ECHO                                                     ~12
    9    14        ADD                                              ~13     !4, !2
         15        ASSIGN                                                   !4, ~13
         16    >   IS_SMALLER                                               !4, !1
         17      > JMPNZ                                                    ~15, ->12
   12    18    >   ECHO                                                     '+%7C+'
    7    19        PRE_INC                                                  !3
         20    >   IS_SMALLER                                               !3, !2
         21      > JMPNZ                                                    ~17, ->10
   13    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.94 ms | 1387 KiB | 15 Q