3v4l.org

run code in 300+ 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:
24.99 ms | 405 KiB | 5 Q