3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = array(); $message["attachment"]["type"][0] = "text"; $message["attachment"]["type"][1] = "multipart"; $message["attachment"]["type"][2] = "message"; $message["attachment"]["type"][3] = "application"; $message["attachment"]["type"][4] = "audio"; $message["attachment"]["type"][5] = "image"; $message["attachment"]["type"][6] = "video"; $message["attachment"]["type"][7] = "other";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rkvSt
function name:  (null)
number of ops:  34
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_W                                      $2      !0, 'attachment'
          2        FETCH_DIM_W                                      $3      $2, 'type'
          3        ASSIGN_DIM                                               $3, 0
          4        OP_DATA                                                  'text'
    4     5        FETCH_DIM_W                                      $5      !0, 'attachment'
          6        FETCH_DIM_W                                      $6      $5, 'type'
          7        ASSIGN_DIM                                               $6, 1
          8        OP_DATA                                                  'multipart'
    5     9        FETCH_DIM_W                                      $8      !0, 'attachment'
         10        FETCH_DIM_W                                      $9      $8, 'type'
         11        ASSIGN_DIM                                               $9, 2
         12        OP_DATA                                                  'message'
    6    13        FETCH_DIM_W                                      $11     !0, 'attachment'
         14        FETCH_DIM_W                                      $12     $11, 'type'
         15        ASSIGN_DIM                                               $12, 3
         16        OP_DATA                                                  'application'
    7    17        FETCH_DIM_W                                      $14     !0, 'attachment'
         18        FETCH_DIM_W                                      $15     $14, 'type'
         19        ASSIGN_DIM                                               $15, 4
         20        OP_DATA                                                  'audio'
    8    21        FETCH_DIM_W                                      $17     !0, 'attachment'
         22        FETCH_DIM_W                                      $18     $17, 'type'
         23        ASSIGN_DIM                                               $18, 5
         24        OP_DATA                                                  'image'
    9    25        FETCH_DIM_W                                      $20     !0, 'attachment'
         26        FETCH_DIM_W                                      $21     $20, 'type'
         27        ASSIGN_DIM                                               $21, 6
         28        OP_DATA                                                  'video'
   10    29        FETCH_DIM_W                                      $23     !0, 'attachment'
         30        FETCH_DIM_W                                      $24     $23, 'type'
         31        ASSIGN_DIM                                               $24, 7
         32        OP_DATA                                                  'other'
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.59 ms | 1399 KiB | 13 Q