3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myarray['myuser-myform']['myfile']="test"; $parts = explode("-",key($myarray)); printf("%s",$parts[0]['myfile']); ?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/2NjaQ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $myarray, !1 = $parts
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   FETCH_DIM_W                                      $2      !0, 'myuser-myform'
         1        ASSIGN_DIM                                               $2, 'myfile'
         2        OP_DATA                                                  'test'
   3     3        INIT_FCALL                                               'explode'
         4        SEND_VAL                                                 '-'
         5        INIT_FCALL                                               'key'
         6        SEND_VAR                                                 !0
         7        DO_ICALL                                         $4      
         8        SEND_VAR                                                 $4
         9        DO_ICALL                                         $5      
        10        ASSIGN                                                   !1, $5
   4    11        INIT_FCALL                                               'printf'
        12        SEND_VAL                                                 '%25s'
        13        FETCH_DIM_R                                      $7      !1, 0
        14        FETCH_DIM_R                                      $8      $7, 'myfile'
        15        SEND_VAR                                                 $8
        16        DO_ICALL                                                 
        17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0