3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '| iptv: { 1 } { 8000 } { localhost.test/categories/music.xml } { golden } { 000000 } { 01 02 03 04 05 06 07 08 09 10 11 12 13 14 } { 1 } | msg: { 1 } { 0 } { Welcome expire: 2020-01-20 } { 0 } { 0 } { 00 } { 0 }'; $rule = '/{[^[{}]*\h(\S+\.xml|\d{4}-\d{2}-\d{2})\h}/i'; preg_match_all($rule, $str, $matches); print_r($matches[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4AfZ7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $rule, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7C+iptv%3A+%7B+1+%7D+%7B+8000+%7D+%7B+localhost.test%2Fcategories%2Fmusic.xml+%7D+%7B+golden+%7D+%7B+000000+%7D+%7B+01+02+03+04+05+06+07+08+09+10+11+12+13+14+%7D+%7B+1+%7D+%7C+msg%3A+%7B+1+%7D+%7B+0+%7D+%7B+Welcome+expire%3A+2020-01-20+%7D+%7B+0+%7D+%7B+0+%7D+%7B+00+%7D+%7B+0+%7D'
    4     1        ASSIGN                                                   !1, '%2F%7B%5B%5E%5B%7B%7D%5D%2A%5Ch%28%5CS%2B%5C.xml%7C%5Cd%7B4%7D-%5Cd%7B2%7D-%5Cd%7B2%7D%29%5Ch%7D%2Fi'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~6      !2, 1
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.39 ms | 1013 KiB | 15 Q