3v4l.org

run code in 300+ PHP versions simultaneously
<?php $names = array('Bill', 'Ben', 'Bert', 'Ernie'); $start = 2; for( $i = $start, $count = count( $names); $i < $count; $i++) { echo $names[$i]; } $i = 0; while( $i < $start) { echo $names[$i++]; }
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 = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 13
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 13
Branch analysis from position: 18
Branch analysis from position: 13
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/2LVt4
function name:  (null)
number of ops:  19
compiled vars:  !0 = $names, !1 = $start, !2 = $i, !3 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 2
    4     2        ASSIGN                                                   !2, !1
          3        COUNT                                            ~7      !0
          4        ASSIGN                                                   !3, ~7
          5      > JMP                                                      ->9
    5     6    >   FETCH_DIM_R                                      ~9      !0, !2
          7        ECHO                                                     ~9
    4     8        PRE_INC                                                  !2
          9    >   IS_SMALLER                                               !2, !3
         10      > JMPNZ                                                    ~11, ->6
    7    11    >   ASSIGN                                                   !2, 0
    8    12      > JMP                                                      ->16
    9    13    >   POST_INC                                         ~13     !2
         14        FETCH_DIM_R                                      ~14     !0, ~13
         15        ECHO                                                     ~14
    8    16    >   IS_SMALLER                                               !2, !1
         17      > JMPNZ                                                    ~15, ->13
   10    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.55 ms | 1394 KiB | 13 Q