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 $name; } $i = 0; while( $i++ < $start) { echo $name; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 12
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 12
Branch analysis from position: 16
Branch analysis from position: 12
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 6
Branch analysis from position: 10
Branch analysis from position: 6
filename:       /in/R6oZc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $names, !1 = $start, !2 = $i, !3 = $count, !4 = $name
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                                            ~8      !0
          4        ASSIGN                                                   !3, ~8
          5      > JMP                                                      ->8
    5     6    >   ECHO                                                     !4
    4     7        PRE_INC                                                  !2
          8    >   IS_SMALLER                                               !2, !3
          9      > JMPNZ                                                    ~11, ->6
    7    10    >   ASSIGN                                                   !2, 0
    8    11      > JMP                                                      ->13
    9    12    >   ECHO                                                     !4
    8    13    >   POST_INC                                         ~13     !2
         14        IS_SMALLER                                               ~13, !1
         15      > JMPNZ                                                    ~14, ->12
   10    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.14 ms | 1398 KiB | 13 Q