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 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 = 27
Branch analysis from position: 14
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 26
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 26
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 27
Branch analysis from position: 7
filename:       /in/nGG3c
function name:  (null)
number of ops:  28
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        INIT_FCALL                                               'reset'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                                 
   13    11        ISSET_ISEMPTY_CV                                 ~9      !0
         12        BOOL_NOT                                         ~10     ~9
         13      > JMPZ                                                     ~10, ->27
   14    14    > > FE_RESET_R                                       $11     !0, ->26
         15    > > FE_FETCH_R                                       ~12     $11, !1, ->26
         16    >   ASSIGN                                                   !2, ~12
   15    17        CONCAT                                           ~14     !2, '+%3D%3E+'
         18        FETCH_DIM_R                                      ~15     !1, 'b'
         19        CONCAT                                           ~16     ~14, ~15
         20        CONCAT                                           ~17     ~16, '%2C+'
         21        FETCH_DIM_R                                      ~18     !1, 'c'
         22        CONCAT                                           ~19     ~17, ~18
         23        CONCAT                                           ~20     ~19, '%0A'
         24        ECHO                                                     ~20
   14    25      > JMP                                                      ->15
         26    >   FE_FREE                                                  $11
   17    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.5 ms | 1396 KiB | 15 Q