3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarray['myuser-myform']['myfile']="test"; $parts = explode("-",key($myarray)); printf("%s",$parts[0]); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sFrVJ
function name:  (null)
number of ops:  17
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        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
    5    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.48 ms | 1394 KiB | 19 Q