3v4l.org

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