3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.58 ms | 1392 KiB | 13 Q