3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('ishita','jayesh','shalin','miraj','shalini','av','gh','a','b'); $b = array(); $j = 1; for ($i = 0; $i < sizeof($a); $i++) { if($j != 8) { array_push($b,$a[$i]); $j = $j+1; } else { $j = 1; print_r($b); unset($b); $b = array(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 5
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 5
Branch analysis from position: 25
Branch analysis from position: 5
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 5
Branch analysis from position: 25
Branch analysis from position: 5
filename:       /in/OYKR8
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $b, !2 = $j, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, 1
    5     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->22
    6     5    >   IS_NOT_EQUAL                                             !2, 8
          6      > JMPZ                                                     ~8, ->15
    7     7    >   INIT_FCALL                                               'array_push'
          8        SEND_REF                                                 !1
          9        FETCH_DIM_R                                      ~9      !0, !3
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                                 
    8    12        ADD                                              ~11     !2, 1
         13        ASSIGN                                                   !2, ~11
         14      > JMP                                                      ->21
   10    15    >   ASSIGN                                                   !2, 1
   11    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   12    19        UNSET_CV                                                 !1
   13    20        ASSIGN                                                   !1, <array>
    5    21    >   PRE_INC                                                  !3
         22    >   COUNT                                            ~17     !0
         23        IS_SMALLER                                               !3, ~17
         24      > JMPNZ                                                    ~18, ->5
   15    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.06 ms | 944 KiB | 18 Q