3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array= [[1], [2], [3], [4], [5], [6], [7], [8], [9]]; foreach(array_keys($array) as $key) { unset($array[$key]); } print_r($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/7jmgk
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4      > FE_RESET_R                                       $4      $3, ->8
          5    > > FE_FETCH_R                                               $4, !1, ->8
    4     6    >   UNSET_DIM                                                !0, !1
    3     7      > JMP                                                      ->5
          8    >   FE_FREE                                                  $4
    6     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.58 ms | 1398 KiB | 17 Q