3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v_4 = [ [1, 2, 3], [4, 5, 6], ]; $v_5 = [ [7, 8, 9], [10, 11, 12], ]; foreach ($v_4 as $i => &$row) { foreach ($row as $k => &$v) { $v += $v_5[$i][$k]; } } var_export($v_4);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 126) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 125) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 126) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/99I9H
function name:  (null)
number of ops:  19
compiled vars:  !0 = $v_4, !1 = $v_5, !2 = $row, !3 = $i, !4 = $v, !5 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
   12     2      > FE_RESET_RW                                      $8      !0, ->14
          3    > > FE_FETCH_RW                                      ~9      $8, !2, ->14
          4    >   ASSIGN                                                   !3, ~9
   13     5      > FE_RESET_RW                                      $11     !2, ->12
          6    > > FE_FETCH_RW                                      ~12     $11, !4, ->12
          7    >   ASSIGN                                                   !5, ~12
   14     8        FETCH_DIM_R                                      ~14     !1, !3
          9        FETCH_DIM_R                                      ~15     ~14, !5
         10        ASSIGN_OP                                     1          !4, ~15
   13    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $11
   12    13      > JMP                                                      ->3
         14    >   FE_FREE                                                  $8
   17    15        INIT_FCALL                                               'var_export'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.08 ms | 1005 KiB | 14 Q