3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("value1","value2","value3"); for($i=0;$i<count($array);$i++){ echo("Element $i contains $array[2]<br/>"); }
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 = 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 = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/VLqu6
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->11
    4     3    >   ROPE_INIT                                     5  ~6      'Element+'
          4        ROPE_ADD                                      1  ~6      ~6, !1
          5        ROPE_ADD                                      2  ~6      ~6, '+contains+'
          6        FETCH_DIM_R                                      ~4      !0, 2
          7        ROPE_ADD                                      3  ~6      ~6, ~4
          8        ROPE_END                                      4  ~5      ~6, '%3Cbr%2F%3E'
          9        ECHO                                                     ~5
    3    10        PRE_INC                                                  !1
         11    >   COUNT                                            ~10     !0
         12        IS_SMALLER                                               !1, ~10
         13      > JMPNZ                                                    ~11, ->3
    5    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.42 ms | 1393 KiB | 13 Q