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.'?nltid='.$params.'~md5='.$hash; ?>
Output for 7.4.0
Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/C4D1T on line 15 Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/C4D1T on line 15 http://nlds21.cdnak.neulion.com/nlds/nfl/nfltv/as/live/nfltv_hd_3000.m3u8?nltid=nltid=nflgp&nltdt=6&nltnt=1&uid=707005&hdnea=expires=1488747325~access=/nlds/nfl/nfltv/as/live/*~md5=543f65ebf6b09bfd22a8cd7b3ac8fd4f
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, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12
http://nlds21.cdnak.neulion.com/nlds/nfl/nfltv/as/live/nfltv_hd_3000.m3u8?nltid=nltid=nflgp&nltdt=6&nltnt=1&uid=707005&hdnea=expires=1488747325~access=/nlds/nfl/nfltv/as/live/*~md5=543f65ebf6b09bfd22a8cd7b3ac8fd4f
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.1
Fatal error: Call to undefined function hash_hmac() in /in/C4D1T 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/C4D1T 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/C4D1T 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/C4D1T on line 21

preferences:
251.33 ms | 401 KiB | 320 Q