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);

preferences:
31.35 ms | 405 KiB | 5 Q