3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('FACTOR', 1); $arr = array(); for ($i = 0; $i < 1; $i++) { $arr[$i * FACTOR] = 1; }
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 = 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/XRX5v
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'FACTOR'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, <array>
    6     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->12
    7     7    >   FETCH_CONSTANT                                   ~5      'FACTOR'
          8        MUL                                              ~6      !1, ~5
          9        ASSIGN_DIM                                               !0, ~6
         10        OP_DATA                                                  1
    6    11        PRE_INC                                                  !1
         12    >   IS_SMALLER                                               !1, 1
         13      > JMPNZ                                                    ~9, ->7
    8    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.78 ms | 1394 KiB | 15 Q