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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.99 ms | 1388 KiB | 15 Q