3v4l.org

run code in 500+ PHP versions simultaneously
<?php preg_match('#/\K[a-zA-Z0-9_-]+\.html$#', 'https://example.com.ua/part1/part2/part3/product-123.html', $match); echo $match[0];

preferences:
89.64 ms | 1988 KiB | 5 Q