3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = "/(?<=^\\S|\\s\\S|\\s)[RD]/g"; $str = "-D-K4_NNNN_M116_R1_001.gz _D-K4_NNNN_M56_R1_001.gz R-K4_NNNN_KQ9_R1_001.gz D-K4_NNNN_M987_R1_001.gz _R-K4_NNNN_M987_R1_001.gz"; preg_match_all($re, $str, $matches); echo '<pre>'; print_r($matches); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hX1Un
function name:  (null)
number of ops:  13
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%28%3F%3C%3D%5E%5CS%7C%5Cs%5CS%7C%5Cs%29%5BRD%5D%2Fg'
    4     1        ASSIGN                                                   !1, '-D-K4_NNNN_M116_R1_001.gz+_D-K4_NNNN_M56_R1_001.gz+R-K4_NNNN_KQ9_R1_001.gz+D-K4_NNNN_M987_R1_001.gz+_R-K4_NNNN_M987_R1_001.gz'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    7     7        ECHO                                                     '%3Cpre%3E'
    8     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
    9    11        ECHO                                                     '%3C%2Fpre%3E'
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.9 ms | 1394 KiB | 17 Q