3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $expire = 1481437539; $proto = 'http://'; $domain = 'nlds120.cdnak.neulion.com'; $path = 'nlds_vod/nba/vod/2016/12/10/21600351/fc9d4a/2_21600351_gsw_mem_2016_a_whole_1_ipad.mp4.m3u8'; $key = 'NBAtv'; $params = 'expires='.$expire.'~access=/nlds_vod/nba/vod/2016/12/10/21600351/fc9d4a/*'; function h2b($str) { $bin = ""; $i = 0; do { $bin .= chr(hexdec($str{$i}.$str{($i + 1)})); $i += 2; } while ($i < strlen($str)); return $bin; } $bin = h2b($key); $hash = hash_hmac('MD5', $params, $bin); echo $bin; echo $proto.$domain.'/'.$path.'?hdnea='.$params.'~md5='.$hash.'&nltid=nba&nltdt=6'; ?>
based on oMR0g
Output for 5.6.0 - 5.6.30, hhvm-3.15.4 - 3.17.3, 7.0.0 - 7.2.6
Notice: Uninitialized string offset: 5 in /in/g0ekl on line 16 http://nlds120.cdnak.neulion.com/nlds_vod/nba/vod/2016/12/10/21600351/fc9d4a/2_21600351_gsw_mem_2016_a_whole_1_ipad.mp4.m3u8?hdnea=expires=1481437539~access=/nlds_vod/nba/vod/2016/12/10/21600351/fc9d4a/*~md5=d3bf70fc84df0fe2d2994b4728440dcc&nltid=nba&nltdt=6
Output for hhvm-3.12.14
http://nlds120.cdnak.neulion.com/nlds_vod/nba/vod/2016/12/10/21600351/fc9d4a/2_21600351_gsw_mem_2016_a_whole_1_ipad.mp4.m3u8?hdnea=expires=1481437539~access=/nlds_vod/nba/vod/2016/12/10/21600351/fc9d4a/*~md5=d3bf70fc84df0fe2d2994b4728440dcc&nltid=nba&nltdt=6