3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $expire = time() + 2592000; $proto = 'http://'; $domain = 'nlds21.cdnak.neulion.com'; $path = 'nlds/nfl/nfltv/as/live/nfltv_hd_3000.m3u8'; $key = '0326ebdb3e654166a66d3c62'; $params = 'nltid=nflgp&nltdt=6&nltnt=1&uid=707005&hdnea=expires='.$expire.'~access=/nlds/nfl/nfltv/as/live/*'; 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.'?'.$params.'~md5='.$hash; ?>
based on C4D1T
Output for 7.2.0
http://nlds21.cdnak.neulion.com/nlds/nfl/nfltv/as/live/nfltv_hd_3000.m3u8?nltid=nflgp&nltdt=6&nltnt=1&uid=707005&hdnea=expires=1511303221~access=/nlds/nfl/nfltv/as/live/*~md5=007ad54895cd457eb79a456c14f95671
Output for 5.1.2 - 5.6.30, hhvm-3.11.1 - 3.15.4, 7.0.0 - 7.1.10
http://nlds21.cdnak.neulion.com/nlds/nfl/nfltv/as/live/nfltv_hd_3000.m3u8?nltid=nflgp&nltdt=6&nltnt=1&uid=707005&hdnea=expires=1479642806~access=/nlds/nfl/nfltv/as/live/*~md5=d506ba5fde72d982f438962e75522311
Output for hhvm-3.10.1, hhvm-3.17.3
http://nlds21.cdnak.neulion.com/nlds/nfl/nfltv/as/live/nfltv_hd_3000.m3u8?nltid=nflgp&nltdt=6&nltnt=1&uid=707005&hdnea=expires=1479642807~access=/nlds/nfl/nfltv/as/live/*~md5=1be62513499a67d29dd778742c78a177
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function hash_hmac() in /in/kb0NW on line 21
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hash_hmac() in /in/kb0NW on line 21
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hash_hmac() in /in/kb0NW on line 21
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hash_hmac() in /in/kb0NW on line 21