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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pnY2g
function name:  (null)
number of ops:  11
compiled vars:  !0 = $rel_path, !1 = $attachments
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                                         $3      
          4        ASSIGN                                                   !1, $3
    5     5        ASSIGN_DIM                                               !1
          6        OP_DATA                                                  !0
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.6 ms | 1394 KiB | 17 Q