3v4l.org

run code in 300+ PHP versions simultaneously
<?php $check = '/mp4/m'; $story = 'something.mp4'; preg_match_all($check, $story, $matches, PREG_SET_ORDER, 0); var_dump($matches);
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.29, 7.4.0 - 7.4.21, 8.0.0 - 8.0.8
array(1) { [0]=> array(1) { [0]=> string(3) "mp4" } }

preferences:
89.58 ms | 459 KiB | 5 Q