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; } $arr = [ 'a' => 1, 'b' => 2 ]; $arrRef = &$arr; unset($arrRef['a']); var_dump($arrRef); var_dump($arr);
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/8mKNA
function name:  (null)
number of ops:  29
compiled vars:  !0 = $array, !1 = $val, !2 = $key, !3 = $arr, !4 = $arrRef
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_RW                                      $6      !0, ->5
          2    > > FE_FETCH_RW                                              $6, !1, ->5
    9     3    >   UNSET_DIM                                                !1, 'a'
    8     4      > JMP                                                      ->2
          5    >   FE_FREE                                                  $6
   12     6      > FE_RESET_R                                       $7      !0, ->18
          7    > > FE_FETCH_R                                       ~8      $7, !1, ->18
          8    >   ASSIGN                                                   !2, ~8
   13     9        CONCAT                                           ~10     !2, '+%3D%3E+'
         10        FETCH_DIM_R                                      ~11     !1, 'b'
         11        CONCAT                                           ~12     ~10, ~11
         12        CONCAT                                           ~13     ~12, '%2C+'
         13        FETCH_DIM_R                                      ~14     !1, 'c'
         14        CONCAT                                           ~15     ~13, ~14
         15        CONCAT                                           ~16     ~15, '%0A'
         16        ECHO                                                     ~16
   12    17      > JMP                                                      ->7
         18    >   FE_FREE                                                  $7
   16    19        ASSIGN                                                   !3, <array>
   17    20        ASSIGN_REF                                               !4, !3
   18    21        UNSET_DIM                                                !4, 'a'
   19    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !4
         24        DO_ICALL                                                 
   20    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.97 ms | 1401 KiB | 15 Q