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:
21.41 ms | 475 KiB | 4 Q