3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array['index1']['index2'] = 'foo'; unset( $my_array['index1']['index2'] ); var_dump( $my_array );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8XMjC
function name:  (null)
number of ops:  9
compiled vars:  !0 = $my_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $1      !0, 'index1'
          1        ASSIGN_DIM                                               $1, 'index2'
          2        OP_DATA                                                  'foo'
    4     3        FETCH_DIM_UNSET                                  $3      !0, 'index1'
          4        UNSET_DIM                                                $3, 'index2'
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.76 ms | 1398 KiB | 15 Q