3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = ['a', 'b', 'c', 'd']; $count = count($items); for ($i = 0; $i < $count; $i++) { if ($i % 0) { echo 'even'; } else { echo 'uneven'; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
filename:       /in/PEkv2
function name:  (null)
number of ops:  14
compiled vars:  !0 = $items, !1 = $count, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        COUNT                                            ~4      !0
          2        ASSIGN                                                   !1, ~4
    4     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->11
    5     5    >   MOD                                              ~7      !2, 0
          6      > JMPZ                                                     ~7, ->9
    6     7    >   ECHO                                                     'even'
          8      > JMP                                                      ->10
    8     9    >   ECHO                                                     'uneven'
    4    10    >   PRE_INC                                                  !2
         11    >   IS_SMALLER                                               !2, !1
         12      > JMPNZ                                                    ~9, ->5
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.27 ms | 1394 KiB | 13 Q