3v4l.org

run code in 300+ PHP versions simultaneously
<?php $configuration = array( 'controllerConfiguration' => array( 'TheFirstController' => array( ), ) ); $var = current(array_keys($configuration['controllerConfiguration'])); var_dump($var); unset($configuration['controllerConfiguration']['TheFirstController']); $configuration['controllerConfiguration'] = array(); $var = current(array_keys($configuration['controllerConfiguration'])); var_dump($var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UO3aI
function name:  (null)
number of ops:  28
compiled vars:  !0 = $configuration, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'current'
          2        INIT_FCALL                                               'array_keys'
          3        FETCH_DIM_R                                      ~3      !0, 'controllerConfiguration'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
   12    12        FETCH_DIM_UNSET                                  $8      !0, 'controllerConfiguration'
         13        UNSET_DIM                                                $8, 'TheFirstController'
   14    14        ASSIGN_DIM                                               !0, 'controllerConfiguration'
         15        OP_DATA                                                  <array>
   15    16        INIT_FCALL                                               'current'
         17        INIT_FCALL                                               'array_keys'
         18        FETCH_DIM_R                                      ~10     !0, 'controllerConfiguration'
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                         $11     
         21        SEND_VAR                                                 $11
         22        DO_ICALL                                         $12     
         23        ASSIGN                                                   !1, $12
   16    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
213.64 ms | 1395 KiB | 19 Q