3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "http://hls.v.momocdn.com/live/gdws360abc/playlist.m3u8"; $startloc = strrpos($a,"/live"); $endloc = strrpos($a,"/playlist.m3u8"); echo $startloc; echo $endloc; echo substr($a,$startloc+6,$endloc-$startloc-6);
based on N41aC
Output for 5.3.19 - 7.3.1
2440gdws360abc