PHP script to echo hard code

Job ID: 34604330

Budget: $10 – $30 USD

I have this piece of code used in a m3u8 playlist that decodes a url. Used functions are are urldecode, wget, sed, grep. Check txt attached. In the end all I want is the a php script that echoes the given url decoded/clean.
Related categories: PHP JavaScript Linux Software Architecture UNIX