3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '@<!CDATA\[.*?/\K\w+\.\jpg(?=\]\])@'; $str = '<!CDATA[/2018/08/hello.jpg]]><!CDATA[/2018/08/another.jpg]]>'; preg_match_all($re, $str, $matches); print_r($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e9lgg
function name:  (null)
number of ops:  12
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%40%3C%21CDATA%5C%5B.%2A%3F%2F%5CK%5Cw%2B%5C.%5Cjpg%28%3F%3D%5C%5D%5C%5D%29%40'
    4     1        ASSIGN                                                   !1, '%3C%21CDATA%5B%2F2018%2F08%2Fhello.jpg%5D%5D%3E%3C%21CDATA%5B%2F2018%2F08%2Fanother.jpg%5D%5D%3E'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~6      !2, 0
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
248.8 ms | 1010 KiB | 15 Q