3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* In this example the source media is located at rtmp://vs-hls-ww.live.cf.md.bbci.co.uk/pool_902/live/nonuk/bbc_arabic_tv/bbc_arabic_tv.isml/index.m3u8 Flow player has the name split by 2 part. They are stored in respective variables below. */ $base_url = 'http://livep2p.vanlong.stream/playlist/44faa15ef2772ff1012230a7b4dbd2e11615475726783.m3u8'; $today = gmdate("n/j/Y g:i:s A"); $key = //317a488a-0091-4a14-8147-f4e965992ebf $validminutes = 1; $str2hash = $key . $today . $validminutes; $md5raw = md5($str2hash, true); $base64hash = ($md5raw); $urlsignature = "http://4ce5e2d62ee2c10e43c709f9b87c44d5.streamhost.cc/m3u8/France/1b4d1e3292b3936.m3u8" . $today ."&hash_value=" . $base64hash. "&=$validminutes"; $base64urlsignature = base64_encode($urlsignature); ?> <?php echo "{$base_url}?wmsAuthSign=$base64urlsignature"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rjNs9
function name:  (null)
number of ops:  33
compiled vars:  !0 = $base_url, !1 = $today, !2 = $key, !3 = $validminutes, !4 = $str2hash, !5 = $md5raw, !6 = $base64hash, !7 = $urlsignature, !8 = $base64urlsignature
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Flivep2p.vanlong.stream%2Fplaylist%2F44faa15ef2772ff1012230a7b4dbd2e11615475726783.m3u8'
    8     1        INIT_FCALL                                               'gmdate'
          2        SEND_VAL                                                 'n%2Fj%2FY+g%3Ai%3As+A'
          3        DO_ICALL                                         $10     
          4        ASSIGN                                                   !1, $10
   11     5        ASSIGN                                           ~12     !3, 1
   10     6        ASSIGN                                                   !2, ~12
   12     7        CONCAT                                           ~14     !2, !1
          8        CONCAT                                           ~15     ~14, !3
          9        ASSIGN                                                   !4, ~15
   13    10        INIT_FCALL                                               'md5'
         11        SEND_VAR                                                 !4
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $17     
         14        ASSIGN                                                   !5, $17
   14    15        ASSIGN                                                   !6, !5
   15    16        CONCAT                                           ~20     'http%3A%2F%2F4ce5e2d62ee2c10e43c709f9b87c44d5.streamhost.cc%2Fm3u8%2FFrance%2F1b4d1e3292b3936.m3u8', !1
         17        CONCAT                                           ~21     ~20, '%26hash_value%3D'
         18        CONCAT                                           ~22     ~21, !6
         19        NOP                                                      
         20        FAST_CONCAT                                      ~23     '%26%3D', !3
         21        CONCAT                                           ~24     ~22, ~23
         22        ASSIGN                                                   !7, ~24
   16    23        INIT_FCALL                                               'base64_encode'
         24        SEND_VAR                                                 !7
         25        DO_ICALL                                         $26     
         26        ASSIGN                                                   !8, $26
   19    27        ECHO                                                     '%0A'
   20    28        ROPE_INIT                                     3  ~29     !0
         29        ROPE_ADD                                      1  ~29     ~29, '%3FwmsAuthSign%3D'
         30        ROPE_END                                      2  ~28     ~29, !8
         31        ECHO                                                     ~28
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
258.16 ms | 1008 KiB | 16 Q