3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '~(?=(/\d+/))~m'; $str = 'https://somesite.com/0/posts/20/290/755653-Title.html'; preg_match_all($re, $str, $matches); print_r($matches[1]);

preferences:
83.86 ms | 1496 KiB | 5 Q