3v4l.org

run code in 500+ PHP versions simultaneously
<?php $investors = []; for ($i = 0; $i < 2; ++$i) { for ($k = 0; $k < 3; ++$k) { $investors[$k]['b_amount'] = ($investors[$k]['b_amount'] ?? 0) + 1 * $k + $i; $investors[$k]['recv_total'] = ($investors[$k]['recv_total'] ?? 0) + 1 + $k + $i; } } var_export($investors);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 3
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 5
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 3
Branch analysis from position: 31
Branch analysis from position: 3
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 5
Branch analysis from position: 28
Branch analysis from position: 5
filename:       /in/rSStU
function name:  (null)
number of ops:  35
compiled vars:  !0 = $investors, !1 = $i, !2 = $k
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, 0
          2      > JMP                                                          ->29
    5     3    >   ASSIGN                                                       !2, 0
          4      > JMP                                                          ->26
    6     5    >   FETCH_DIM_IS                                         ~8      !0, !2
          6        FETCH_DIM_IS                                         ~9      ~8, 'b_amount'
          7        COALESCE                                             ~10     ~9
          8        QM_ASSIGN                                            ~10     0
          9        MUL                                                  ~11     !2, 1
         10        ADD                                                  ~12     ~10, ~11
         11        ADD                                                  ~13     ~12, !1
         12        FETCH_DIM_W                                          $6      !0, !2
         13        ASSIGN_DIM                                                   $6, 'b_amount'
         14        OP_DATA                                                      ~13
    7    15        FETCH_DIM_IS                                         ~16     !0, !2
         16        FETCH_DIM_IS                                         ~17     ~16, 'recv_total'
         17        COALESCE                                             ~18     ~17
         18        QM_ASSIGN                                            ~18     0
         19        ADD                                                  ~19     ~18, 1
         20        ADD                                                  ~20     ~19, !2
         21        ADD                                                  ~21     ~20, !1
         22        FETCH_DIM_W                                          $14     !0, !2
         23        ASSIGN_DIM                                                   $14, 'recv_total'
         24        OP_DATA                                                      ~21
    5    25        PRE_INC                                                      !2
         26    >   IS_SMALLER                                                   !2, 3
         27      > JMPNZ                                                        ~23, ->5
    4    28    >   PRE_INC                                                      !1
         29    >   IS_SMALLER                                                   !1, 2
         30      > JMPNZ                                                        ~25, ->3
   10    31    >   INIT_FCALL                                                   'var_export'
         32        SEND_VAR                                                     !0
         33        DO_ICALL                                                     
         34      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
206.72 ms | 1924 KiB | 14 Q