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)\h}.*?{\h[^:]+: (\d{4}-\d{2}-\d{2})\h}/i'; preg_match_all($rule, $str, $matches, PREG_SET_ORDER, 0); echo $matches[0][1]; echo PHP_EOL; echo $matches[0][2];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nYmAk
function name:  (null)
number of ops:  17
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%5Ch%28%5CS%2B%5C.xml%29%5Ch%7D.%2A%3F%7B%5Ch%5B%5E%3A%5D%2B%3A+%28%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        SEND_VAL                                                 2
          7        SEND_VAL                                                 0
          8        DO_ICALL                                                 
    6     9        FETCH_DIM_R                                      ~6      !2, 0
         10        FETCH_DIM_R                                      ~7      ~6, 1
         11        ECHO                                                     ~7
    7    12        ECHO                                                     '%0A'
    8    13        FETCH_DIM_R                                      ~8      !2, 0
         14        FETCH_DIM_R                                      ~9      ~8, 2
         15        ECHO                                                     ~9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
284.76 ms | 1013 KiB | 14 Q