3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.92 ms | 1384 KiB | 13 Q