3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'a' => 1, 'b' => 2, 'c' => 3], [ 'a' => 4, 'b' => 5, 'c' => 6], [ 'a' => 7, 'b' => 8, 'c' => 9] ]; foreach ($array as &$val) { unset($val['a']); } $array2 = [ [ 'a' => 1, 'b' => 2, 'c' => 3], [ 'a' => 4, 'b' => 5, 'c' => 6], [ 'a' => 7, 'b' => 8, 'c' => 9] ]; $arrayRef = &$array2; unset($arrayRef[0]['a']); unset($arrayRef[0]['a']); foreach ($array as $key => $val) { echo $key . ' => ' . $val['b'] . ', ' . $val['c'] . PHP_EOL; } foreach ($array2 as $key => $val) { echo $key . ' => ' . $val['b'] . ', ' . $val['c'] . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 24
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 24
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 24
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 37
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 37
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 24
Branch analysis from position: 5
filename:       /in/Bk1F5
function name:  (null)
number of ops:  39
compiled vars:  !0 = $array, !1 = $val, !2 = $array2, !3 = $arrayRef, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_RW                                      $6      !0, ->5
          2    > > FE_FETCH_RW                                              $6, !1, ->5
    9     3    >   UNSET_DIM                                                !1, 'a'
    8     4      > JMP                                                      ->2
          5    >   FE_FREE                                                  $6
   12     6        ASSIGN                                                   !2, <array>
   18     7        ASSIGN_REF                                               !3, !2
   19     8        FETCH_DIM_UNSET                                  $9      !3, 0
          9        UNSET_DIM                                                $9, 'a'
   20    10        FETCH_DIM_UNSET                                  $10     !3, 0
         11        UNSET_DIM                                                $10, 'a'
   22    12      > FE_RESET_R                                       $11     !0, ->24
         13    > > FE_FETCH_R                                       ~12     $11, !1, ->24
         14    >   ASSIGN                                                   !4, ~12
   23    15        CONCAT                                           ~14     !4, '+%3D%3E+'
         16        FETCH_DIM_R                                      ~15     !1, 'b'
         17        CONCAT                                           ~16     ~14, ~15
         18        CONCAT                                           ~17     ~16, '%2C+'
         19        FETCH_DIM_R                                      ~18     !1, 'c'
         20        CONCAT                                           ~19     ~17, ~18
         21        CONCAT                                           ~20     ~19, '%0A'
         22        ECHO                                                     ~20
   22    23      > JMP                                                      ->13
         24    >   FE_FREE                                                  $11
   26    25      > FE_RESET_R                                       $21     !2, ->37
         26    > > FE_FETCH_R                                       ~22     $21, !1, ->37
         27    >   ASSIGN                                                   !4, ~22
   27    28        CONCAT                                           ~24     !4, '+%3D%3E+'
         29        FETCH_DIM_R                                      ~25     !1, 'b'
         30        CONCAT                                           ~26     ~24, ~25
         31        CONCAT                                           ~27     ~26, '%2C+'
         32        FETCH_DIM_R                                      ~28     !1, 'c'
         33        CONCAT                                           ~29     ~27, ~28
         34        CONCAT                                           ~30     ~29, '%0A'
         35        ECHO                                                     ~30
   26    36      > JMP                                                      ->26
         37    >   FE_FREE                                                  $21
   28    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.33 ms | 1399 KiB | 13 Q