3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.22 ms | 1393 KiB | 13 Q