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 $key => $val) { unset($array[$key]['a']); } foreach ($array as $key => $val) { echo $key . ' => ' . $val['b'] . ', ' . $val['c'] . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 20
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 20
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 7
filename:       /in/gGpBo
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $val, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_R                                       $4      !0, ->7
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->7
          3    >   ASSIGN                                                   !2, ~5
    9     4        FETCH_DIM_UNSET                                  $7      !0, !2
          5        UNSET_DIM                                                $7, 'a'
    8     6      > JMP                                                      ->2
          7    >   FE_FREE                                                  $4
   12     8      > FE_RESET_R                                       $8      !0, ->20
          9    > > FE_FETCH_R                                       ~9      $8, !1, ->20
         10    >   ASSIGN                                                   !2, ~9
   13    11        CONCAT                                           ~11     !2, '+%3D%3E+'
         12        FETCH_DIM_R                                      ~12     !1, 'b'
         13        CONCAT                                           ~13     ~11, ~12
         14        CONCAT                                           ~14     ~13, '%2C+'
         15        FETCH_DIM_R                                      ~15     !1, 'c'
         16        CONCAT                                           ~16     ~14, ~15
         17        CONCAT                                           ~17     ~16, '%0A'
         18        ECHO                                                     ~17
   12    19      > JMP                                                      ->9
         20    >   FE_FREE                                                  $8
   14    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.49 ms | 1394 KiB | 13 Q