3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.92 ms | 1393 KiB | 13 Q