3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stuff = array( 'a','b','c' ); for ($i=0; $i <= 5; $i++) { if (isset($stuff[$i])) { echo $stuff[$i]; } else { echo 'no such key as ' . $i . ' <br>'; } }
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 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
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: 8
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/tBcHC
function name:  (null)
number of ops:  15
compiled vars:  !0 = $stuff, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->12
    8     3    >   ISSET_ISEMPTY_DIM_OBJ                         0          !0, !1
          4      > JMPZ                                                     ~4, ->8
   11     5    >   FETCH_DIM_R                                      ~5      !0, !1
          6        ECHO                                                     ~5
          7      > JMP                                                      ->11
   15     8    >   CONCAT                                           ~6      'no+such+key+as+', !1
          9        CONCAT                                           ~7      ~6, '+%3Cbr%3E'
         10        ECHO                                                     ~7
    6    11    >   PRE_INC                                                  !1
         12    >   IS_SMALLER_OR_EQUAL                                      !1, 5
         13      > JMPNZ                                                    ~9, ->3
   17    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.63 ms | 1393 KiB | 13 Q