3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row['attachments'] = 'draft_attachment.rar draft_attachment - Copy.rar'; $attachments = preg_split('/\R/', $row['attachments']); print_r($attachments);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3g54m
function name:  (null)
number of ops:  12
compiled vars:  !0 = $row, !1 = $attachments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'attachments'
          1        OP_DATA                                                  'draft_attachment.rar%0Adraft_attachment+-+Copy.rar'
    6     2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F%5CR%2F'
          4        FETCH_DIM_R                                      ~3      !0, 'attachments'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    7     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.72 ms | 1398 KiB | 17 Q