3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $expire = time() + 2592000; $proto = 'http://'; $domain = 'nlds28.cdnak.neulion.com/'; $path = 'nlds/premiumsports/benficatv/as/live/benficatv_hd_ipad.m3u8'; $key = '0326ebdb3e654166a66d3c62'; $params = 'expires='.$expire.'~access=/nlds/premiumsports/benficatv/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.'?hdnea='.$params.'~md5='.$hash; ?>
based on tjuSP
Output for 5.6.28, 7.0.20 - 7.2.0
http://nlds28.cdnak.neulion.com//nlds/premiumsports/benficatv/as/live/benficatv_hd_ipad.m3u8?hdnea=expires=1459748027~access=/nlds/premiumsports/benficatv/as/live/*~md5=1cfc65e4807d673d7ce8e293301c3770
Output for 5.4.0 - 5.6.23, 7.0.0 - 7.0.8
http://nlds28.cdnak.neulion.com//nlds/premiumsports/benficatv/as/live/benficatv_hd_ipad.m3u8?hdnea=expires=1448399196~access=/nlds/premiumsports/benficatv/as/live/*~md5=a03178d39868d13004b2c4df263ab83f