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']); } reset($array); if (!empty($array)) { foreach ($array[0] as $key => $value) { echo $val . PHP_EOL; } 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 = 43) Position 1 = 14, Position 2 = 35
Branch analysis from position: 14
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 21
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 34
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 34
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
Branch analysis from position: 21
Branch analysis from position: 35
Branch analysis from position: 7
filename:       /in/OBpXb
function name:  (null)
number of ops:  36
compiled vars:  !0 = $array, !1 = $val, !2 = $key, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_R                                       $5      !0, ->7
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->7
          3    >   ASSIGN                                                   !2, ~6
    9     4        FETCH_DIM_UNSET                                  $8      !0, !2
          5        UNSET_DIM                                                $8, 'a'
    8     6      > JMP                                                      ->2
          7    >   FE_FREE                                                  $5
   12     8        INIT_FCALL                                               'reset'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                                 
   13    11        ISSET_ISEMPTY_CV                                 ~10     !0
         12        BOOL_NOT                                         ~11     ~10
         13      > JMPZ                                                     ~11, ->35
   14    14    >   FETCH_DIM_R                                      ~12     !0, 0
         15      > FE_RESET_R                                       $13     ~12, ->21
         16    > > FE_FETCH_R                                       ~14     $13, !3, ->21
         17    >   ASSIGN                                                   !2, ~14
   15    18        CONCAT                                           ~16     !1, '%0A'
         19        ECHO                                                     ~16
   14    20      > JMP                                                      ->16
         21    >   FE_FREE                                                  $13
   17    22      > FE_RESET_R                                       $17     !0, ->34
         23    > > FE_FETCH_R                                       ~18     $17, !1, ->34
         24    >   ASSIGN                                                   !2, ~18
   18    25        CONCAT                                           ~20     !2, '+%3D%3E+'
         26        FETCH_DIM_R                                      ~21     !1, 'b'
         27        CONCAT                                           ~22     ~20, ~21
         28        CONCAT                                           ~23     ~22, '%2C+'
         29        FETCH_DIM_R                                      ~24     !1, 'c'
         30        CONCAT                                           ~25     ~23, ~24
         31        CONCAT                                           ~26     ~25, '%0A'
         32        ECHO                                                     ~26
   17    33      > JMP                                                      ->23
         34    >   FE_FREE                                                  $17
   20    35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.09 ms | 1400 KiB | 15 Q