3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $expire = time() + 2592000; $proto = 'http://'; $domain = 'nlds262.cdnllnwnl.neulion.com'; $path = 'nlds/nfl/broncos/as/live/broncos_hd_4500.m3u8'; $key = 'nokeyfuckers'; $params = 'nltid=nflgp&nltdt=6&nltnt=1&uid=707005&hdnea=expires='.$expire.'~access=/nlds/nfl/broncos/as/live/*'; $first = 'Connection=keep-alive&Cookie=nlqptid=nltid=nflgp&nltdt=6&nltnt=1&uid=256296&hdnea=expires='.$expire.'~access=/nlds/nfl/broncos/as/live/'.'*'; $next = '&Accept-encoding=identity, gzip, deflate&User-Agent=Safari/537.36 Mozilla/5.0 AppleWebKit/537.36 Chrome/31.0.1650.57'; function h2b($str) { $bin = ""; $i = 0; do { $bin .= chr(hexdec($str{$i}.$str{($i + 1)})); $i += 2; } while ($i < strlen($str)); return $bin; } $hash = hash_hmac('MD5', $params, h2b($key)); echo $proto.$domain.'/'.$path.'?nltid='.$params.'~md5='.$hash.'|'.$first.$next; ?>
based on tjuSP
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.2.6
http://nlds262.cdnllnwnl.neulion.com/nlds/nfl/broncos/as/live/broncos_hd_4500.m3u8?nltid=nltid=nflgp&nltdt=6&nltnt=1&uid=707005&hdnea=expires=1513136106~access=/nlds/nfl/broncos/as/live/*~md5=7362b7191a919a9b0357c711ae5d5ce5|Connection=keep-alive&Cookie=nlqptid=nltid=nflgp&nltdt=6&nltnt=1&uid=256296&hdnea=expires=1513136106~access=/nlds/nfl/broncos/as/live/*&Accept-encoding=identity, gzip, deflate&User-Agent=Safari/537.36 Mozilla/5.0 AppleWebKit/537.36 Chrome/31.0.1650.57
Output for hhvm-3.22.0
http://nlds262.cdnllnwnl.neulion.com/nlds/nfl/broncos/as/live/broncos_hd_4500.m3u8?nltid=nltid=nflgp&nltdt=6&nltnt=1&uid=707005&hdnea=expires=1513136107~access=/nlds/nfl/broncos/as/live/*~md5=a65853eb048c0e07ecf5d17da18d53b7|Connection=keep-alive&Cookie=nlqptid=nltid=nflgp&nltdt=6&nltnt=1&uid=256296&hdnea=expires=1513136107~access=/nlds/nfl/broncos/as/live/*&Accept-encoding=identity, gzip, deflate&User-Agent=Safari/537.36 Mozilla/5.0 AppleWebKit/537.36 Chrome/31.0.1650.57