3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'filters'=> array('where'=>array('yr'=>1994))); $keys = array_keys($array['filters']['where']); echo array_shift(array_keys($array['filters']['where']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ZKcg
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $keys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_keys'
          2        FETCH_DIM_R                                      ~3      !0, 'filters'
          3        FETCH_DIM_R                                      ~4      ~3, 'where'
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    4     7        INIT_FCALL                                               'array_shift'
          8        INIT_FCALL                                               'array_keys'
          9        FETCH_DIM_R                                      ~7      !0, 'filters'
         10        FETCH_DIM_R                                      ~8      ~7, 'where'
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                         $9      
         13        SEND_VAR_NO_REF                               0          $9
         14        DO_ICALL                                         $10     
         15        ECHO                                                     $10
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.3 ms | 1394 KiB | 17 Q