3v4l.org

run code in 500+ PHP versions simultaneously
<?php $raw = "/3/topic/video1148288/"; preg_match("#/video(\d+)/#", $raw, $matches); $embed = $matches[1]; echo $embed;

preferences:
12.39 ms | 483 KiB | 6 Q