3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("STOP_AT", 1024); $result = array(); for($idx = 1; $idx < STOP_AT; $idx *= 2) { $result[] = $idx; } print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/i3LR8
function name:  (null)
number of ops:  17
compiled vars:  !0 = $result, !1 = $idx
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'STOP_AT'
          2        SEND_VAL                                                 1024
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, <array>
    4     5        ASSIGN                                                   !1, 1
          6      > JMP                                                      ->10
    6     7    >   ASSIGN_DIM                                               !0
          8        OP_DATA                                                  !1
    4     9        ASSIGN_OP                                     3          !1, 2
         10    >   FETCH_CONSTANT                                   ~7      'STOP_AT'
         11        IS_SMALLER                                               !1, ~7
         12      > JMPNZ                                                    ~8, ->7
    8    13    >   INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.83 ms | 1395 KiB | 17 Q