3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.13 ms | 940 KiB | 18 Q