3v4l.org

run code in 300+ PHP versions simultaneously
<?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; ?>
Output for 7.4.0 - 7.4.1
Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/kb0NW on line 15 Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/kb0NW on line 15 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.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.11, 7.2.13 - 7.2.26, 7.3.0 - 7.3.13
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 7.2.12
http://nlds21.cdnak.neulion.com/nlds/nfl/nfltv/as/live/nfltv_hd_3000.m3u8?nltid=nflgp&nltdt=6&nltnt=1&uid=707005&hdnea=expires=1511303222~access=/nlds/nfl/nfltv/as/live/*~md5=58f1d0edfad071ed063163141dc5d4aa
Output for 5.1.2 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38
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 5.0.0 - 5.0.5, 5.1.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.3.11, 4.4.0 - 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

preferences:
234.45 ms | 401 KiB | 323 Q