3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rel_path = '/var/foo/bar/etc.doc'; $attachments = unserialize(NULL); $attachments[] = $rel_path; var_dump($attachments); $currentAttachments = unserialize($attachments); foreach ($currentAttachments as $file) { var_dump($file); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/7IDvY
function name:  (null)
number of ops:  22
compiled vars:  !0 = $rel_path, !1 = $attachments, !2 = $currentAttachments, !3 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fvar%2Ffoo%2Fbar%2Fetc.doc'
    4     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAL                                                 null
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        ASSIGN_DIM                                               !1
          6        OP_DATA                                                  !0
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'unserialize'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    9    14      > FE_RESET_R                                       $11     !2, ->20
         15    > > FE_FETCH_R                                               $11, !3, ->20
   10    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                                 
    9    19      > JMP                                                      ->15
         20    >   FE_FREE                                                  $11
   11    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.54 ms | 1400 KiB | 17 Q