3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = 'http://cdn.videourl.mp4?expire=1635939248&token=7022dbc14de970c7uc040ac4f35058f0 http://cdn.videourl.mp4?token=7022dbc14de970c7uc040ac4f35058f0&expire=1635939248'; preg_match_all('/http\S*?\.mp4\?(?:expire=(?P<expire>[0-9]+)&token=(?P<token>[0-9a-z]+)|token=(?P<token>[0-9a-z]+)&expire=(?P<expire>[0-9]+))/J', $html, $posts, // will contain the article data PREG_SET_ORDER // formats data into an array of posts ); var_dump($posts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JNT0Y
function name:  (null)
number of ops:  11
compiled vars:  !0 = $html, !1 = $posts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fcdn.videourl.mp4%3Fexpire%3D1635939248%26token%3D7022dbc14de970c7uc040ac4f35058f0%0Ahttp%3A%2F%2Fcdn.videourl.mp4%3Ftoken%3D7022dbc14de970c7uc040ac4f35058f0%26expire%3D1635939248'
    6     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2Fhttp%5CS%2A%3F%5C.mp4%5C%3F%28%3F%3Aexpire%3D%28%3FP%3Cexpire%3E%5B0-9%5D%2B%29%26token%3D%28%3FP%3Ctoken%3E%5B0-9a-z%5D%2B%29%7Ctoken%3D%28%3FP%3Ctoken%3E%5B0-9a-z%5D%2B%29%26expire%3D%28%3FP%3Cexpire%3E%5B0-9%5D%2B%29%29%2FJ'
    7     3        SEND_VAR                                                 !0
    8     4        SEND_REF                                                 !1
    9     5        SEND_VAL                                                 2
    6     6        DO_ICALL                                                 
   12     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147 ms | 1010 KiB | 15 Q