3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = 0; while($b< 3) { $b = array(); $b['loop'] = $b; print_r($b['loop']); $b++; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
Branch analysis from position: 2
filename:       /in/Ka2B2
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                                                      ->11
    5     2    >   ASSIGN                                                   !0, <array>
    6     3        QM_ASSIGN                                        ~4      !0
          4        ASSIGN_DIM                                               !0, 'loop'
          5        OP_DATA                                                  ~4
    7     6        INIT_FCALL                                               'print_r'
          7        FETCH_DIM_R                                      ~5      !0, 'loop'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
    8    10        PRE_INC                                                  !0
    3    11    >   IS_SMALLER                                               !0, 3
         12      > JMPNZ                                                    ~8, ->2
   11    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.32 ms | 1386 KiB | 15 Q