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']); } 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 = 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 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 5
filename:       /in/mQL6T
function name:  (null)
number of ops:  20
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_RW                                      $4      !0, ->5
          2    > > FE_FETCH_RW                                              $4, !1, ->5
    9     3    >   UNSET_DIM                                                !1, 'a'
    8     4      > JMP                                                      ->2
          5    >   FE_FREE                                                  $4
   12     6      > FE_RESET_R                                       $5      !0, ->18
          7    > > FE_FETCH_R                                       ~6      $5, !1, ->18
          8    >   ASSIGN                                                   !2, ~6
   13     9        CONCAT                                           ~8      !2, '+%3D%3E+'
         10        FETCH_DIM_R                                      ~9      !1, 'b'
         11        CONCAT                                           ~10     ~8, ~9
         12        CONCAT                                           ~11     ~10, '%2C+'
         13        FETCH_DIM_R                                      ~12     !1, 'c'
         14        CONCAT                                           ~13     ~11, ~12
         15        CONCAT                                           ~14     ~13, '%0A'
         16        ECHO                                                     ~14
   12    17      > JMP                                                      ->7
         18    >   FE_FREE                                                  $5
   14    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.41 ms | 1394 KiB | 13 Q