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] $b"; } ?>
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 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/rGY3r
function name:  (null)
number of ops:  15
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                                                      ->12
    6     6    >   FETCH_DIM_R                                      ~8      !0, !1
          7        ROPE_INIT                                     3  ~10     ~8
          8        ROPE_ADD                                      1  ~10     ~10, '+'
          9        ROPE_END                                      2  ~9      ~10, !2
         10        ECHO                                                     ~9
    5    11        PRE_INC                                                  !1
         12    >   IS_SMALLER_OR_EQUAL                                      !1, !2
         13      > JMPNZ                                                    ~13, ->6
    9    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.22 ms | 1393 KiB | 13 Q