3v4l.org

run code in 300+ PHP versions simultaneously
<?php $niz = array(); for ($i=1; $i<=100; $i++) $niz[] = $i; for ($j=0; $j<=count($niz)-1; $j++) { if ($niz[$j] % 2 == 1) echo $niz[$j] . "<br />\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
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
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
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: 17
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Branch analysis from position: 3
filename:       /in/HDUH1
function name:  (null)
number of ops:  23
compiled vars:  !0 = $niz, !1 = $i, !2 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->6
    6     3    >   ASSIGN_DIM                                               !0
          4        OP_DATA                                                  !1
    5     5        PRE_INC                                                  !1
          6    >   IS_SMALLER_OR_EQUAL                                      !1, 100
          7      > JMPNZ                                                    ~7, ->3
    8     8    >   ASSIGN                                                   !2, 0
          9      > JMP                                                      ->18
   10    10    >   FETCH_DIM_R                                      ~9      !0, !2
         11        MOD                                              ~10     ~9, 2
         12        IS_EQUAL                                                 ~10, 1
         13      > JMPZ                                                     ~11, ->17
   11    14    >   FETCH_DIM_R                                      ~12     !0, !2
         15        CONCAT                                           ~13     ~12, '%3Cbr+%2F%3E%0A'
         16        ECHO                                                     ~13
    8    17    >   PRE_INC                                                  !2
         18    >   COUNT                                            ~15     !0
         19        SUB                                              ~16     ~15, 1
         20        IS_SMALLER_OR_EQUAL                                      !2, ~16
         21      > JMPNZ                                                    ~17, ->10
   12    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.54 ms | 1395 KiB | 13 Q