3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.63 ms | 1394 KiB | 15 Q