3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '/([^_\s]+)(?:_[^\n_-]+)?_\d+\.zip$/m'; $str = 'xxxx_get-thisValue_more details_20200728173715594600.zip get-thisValue_more details_20200728173715594600.zip getThisValue_20200728173715594600.zip xxxx_get-thisValue_more details_20200728173715594600.zip xxxx_getthisValue_more details_20200728173715594600.zip 1111_get-thisValue_more details_20200728173715594600.zip 1111_getthisValue_more details_20200728173715594600.zip get-thisValue_more details_20200728173715594600.zip getthisValue_more details_20200728173715594600.zip get-thisValue_20200728173715594600.zip getthisValue_20200728173715594600.zip'; preg_match_all($re, $str, $matches); print_r($matches[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BRZdv
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, '%2F%28%5B%5E_%5Cs%5D%2B%29%28%3F%3A_%5B%5E%5Cn_-%5D%2B%29%3F_%5Cd%2B%5C.zip%24%2Fm'
    4     1        ASSIGN                                                       !1, 'xxxx_get-thisValue_more+details_20200728173715594600.zip%0Aget-thisValue_more+details_20200728173715594600.zip%0AgetThisValue_20200728173715594600.zip%0Axxxx_get-thisValue_more+details_20200728173715594600.zip%0Axxxx_getthisValue_more+details_20200728173715594600.zip%0A1111_get-thisValue_more+details_20200728173715594600.zip%0A1111_getthisValue_more+details_20200728173715594600.zip%0Aget-thisValue_more+details_20200728173715594600.zip%0AgetthisValue_more+details_20200728173715594600.zip%0Aget-thisValue_20200728173715594600.zip%0AgetthisValue_20200728173715594600.zip'
   16     2        INIT_FCALL                                                   'preg_match_all'
          3        SEND_VAR                                                     !0
          4        SEND_VAR                                                     !1
          5        SEND_REF                                                     !2
          6        DO_ICALL                                                     
   18     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.5.0


preferences:
198.65 ms | 1990 KiB | 15 Q