Obtenha o último valor de barra no PHP

substr(strrchr(rtrim($url, '/'), '/'), 1)
7uc1f3r