3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.4 ms | 1393 KiB | 13 Q