3v4l.org

run code in 300+ PHP versions simultaneously
<?php $envelope["from"]= "joe@example.com"; $envelope["to"] = "foo@example.com"; $envelope["cc"] = "bar@example.com"; $part1["type"] = TYPEMULTIPART; $part1["subtype"] = "mixed"; $contents = "sdfqsdfqsdfqsdf"; $part2["type"] = TYPEAPPLICATION; $part2["encoding"] = ENCBINARY; $part2["subtype"] = "octet-stream"; $part2["description"] = basename($filename); $part2["contents.data"] = $contents; $part3["type"] = TYPETEXT; $part3["subtype"] = "plain"; $part3["description"] = "description3"; $part3["contents.data"] = "contents.data3\n\n\n\t"; $body[1] = $part1; $body[2] = $part2; $body[3] = $part3; echo nl2br(imap_mail_compose($envelope, $body)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B5HOJ
function name:  (null)
number of ops:  51
compiled vars:  !0 = $envelope, !1 = $part1, !2 = $contents, !3 = $part2, !4 = $filename, !5 = $part3, !6 = $body
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'from'
          1        OP_DATA                                                  'joe%40example.com'
    3     2        ASSIGN_DIM                                               !0, 'to'
          3        OP_DATA                                                  'foo%40example.com'
    4     4        ASSIGN_DIM                                               !0, 'cc'
          5        OP_DATA                                                  'bar%40example.com'
    6     6        FETCH_CONSTANT                                   ~11     'TYPEMULTIPART'
          7        ASSIGN_DIM                                               !1, 'type'
          8        OP_DATA                                                  ~11
    7     9        ASSIGN_DIM                                               !1, 'subtype'
         10        OP_DATA                                                  'mixed'
    9    11        ASSIGN                                                   !2, 'sdfqsdfqsdfqsdf'
   11    12        FETCH_CONSTANT                                   ~15     'TYPEAPPLICATION'
         13        ASSIGN_DIM                                               !3, 'type'
         14        OP_DATA                                                  ~15
   12    15        FETCH_CONSTANT                                   ~17     'ENCBINARY'
         16        ASSIGN_DIM                                               !3, 'encoding'
         17        OP_DATA                                                  ~17
   13    18        ASSIGN_DIM                                               !3, 'subtype'
         19        OP_DATA                                                  'octet-stream'
   14    20        INIT_FCALL                                               'basename'
         21        SEND_VAR                                                 !4
         22        DO_ICALL                                         $20     
         23        ASSIGN_DIM                                               !3, 'description'
         24        OP_DATA                                                  $20
   15    25        ASSIGN_DIM                                               !3, 'contents.data'
         26        OP_DATA                                                  !2
   17    27        FETCH_CONSTANT                                   ~23     'TYPETEXT'
         28        ASSIGN_DIM                                               !5, 'type'
         29        OP_DATA                                                  ~23
   18    30        ASSIGN_DIM                                               !5, 'subtype'
         31        OP_DATA                                                  'plain'
   19    32        ASSIGN_DIM                                               !5, 'description'
         33        OP_DATA                                                  'description3'
   20    34        ASSIGN_DIM                                               !5, 'contents.data'
         35        OP_DATA                                                  'contents.data3%0A%0A%0A%09'
   22    36        ASSIGN_DIM                                               !6, 1
         37        OP_DATA                                                  !1
   23    38        ASSIGN_DIM                                               !6, 2
         39        OP_DATA                                                  !3
   24    40        ASSIGN_DIM                                               !6, 3
         41        OP_DATA                                                  !5
   26    42        INIT_FCALL                                               'nl2br'
         43        INIT_FCALL_BY_NAME                                       'imap_mail_compose'
         44        SEND_VAR_EX                                              !0
         45        SEND_VAR_EX                                              !6
         46        DO_FCALL                                      0  $30     
         47        SEND_VAR                                                 $30
         48        DO_ICALL                                         $31     
         49        ECHO                                                     $31
   27    50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.41 ms | 1400 KiB | 17 Q