3v4l.org

run code in 300+ PHP versions simultaneously
<?php function validId($cid, $vid, $type) { switch($type) { case 'channel': // live stream $response = drupal_http_request('http://x'.$cid.'x.' . MEDIA_LIVESTREAM_REST_CHANNEL_API . 'info.json'); //from Livestream submodule getChannelProperties break; case 'video': // on-demand video clip $response = drupal_http_request('http://x'.$cid.'x.' . MEDIA_LIVESTREAM_REST_CHANNEL_API . 'clipdetails.json?id='.$vid); //from getVideoProperties break; } return ($response->code == 200); } function parse($embedCode) { $embedCode = trim($embedCode); $match = FALSE; // The Livestream short code. if (!$match && preg_match('@livestre\.am/([0-9a-zA-Z\-]+)$@i', $embedCode, $matches)) { $headers = media_livestream_get_short_code($matches[0]); $embedCode = $headers['url']; } // This one checks for a channel. // E.g. livestream.com/channelname. if (!$match && preg_match('@livestream\.com/([0-9a-zA-Z\-]+)$@i', $embedCode, $matches)) { $match = TRUE; $this->type = 'channel'; $channel_id = $matches[1]; $video_id = $matches[1]; } // This one checks for a channel iframe. // E.g. livestream.com/embed/channelname. (And no clip (id) set). elseif (!$match && preg_match('@livestream\.com/embed/([0-9a-zA-Z\-]+)?((?!clip|clipId).)*$@i', $embedCode, $matches)) { $match = TRUE; $this->type = 'channel'; $channel_id = $matches[1]; $video_id = $matches[1]; } // This one works for 'video' and 'share' on a new style link. // E.g. livestream.com/channelname/video(or)share/clip(id). elseif (!$match && preg_match('@livestream\.com/([0-9a-zA-Z\-]+).*/(video|share).*((clipId|clip)=([^\&\'" ]+))@i', $embedCode, $matches)) { $match = TRUE; $this->type = 'video'; $channel_id = $matches[1]; $video_id = $matches[5]; } // This one matches the new iframe embed for videos. // E.g. livestream.com/embed/channelname/clip(id). elseif (!$match && preg_match('@livestream\.com/(embed)/([0-9a-zA-Z\-]+).*((clipId|clip)=([^\&\'" ]+))@i', $embedCode, $matches)) { $match = TRUE; $this->type = 'video'; $channel_id = $matches[2]; $video_id = $matches[5]; } // This one also checks for a channel, but this link is almost never used, but it does exist. // E.g. livestream.com/channelname/share. elseif (!$match && preg_match('@livestream\.com/([0-9a-zA-Z\-]+)/(share)@i', $embedCode, $matches)) { $match = TRUE; $this->type = 'channel'; $channel_id = $matches[1]; $video_id = $matches[1]; } // This one matches the old flash embed for videos. // E.g. livestream.com/grid/LSPlayer.swf?channel=channelname/clip(id). elseif (!$match && preg_match('@livestream\.com/(grid)/LSPlayer.swf\?(channel)=([0-9a-zA-Z\-]+)&amp;(clipId|clip)=([^\&\'" ]+)@i', $embedCode, $matches)) { $match = TRUE; $this->type = 'video'; $channel_id = $matches[3]; $video_id = $matches[5]; } // This one matches the old flash embed for channels. // E.g. livestream.com/grid/LSPlayer.swf?channel=channelname. elseif (!$match && preg_match('@livestream\.com/grid/LSPlayer\.swf.?channel=([0-9a-zA-Z\-]+)@i', $embedCode, $matches)) { $match = TRUE; $this->type = 'channel'; $channel_id = $matches[1]; $video_id = $matches[1]; } //do something with the match (along the lines of validate and return) return array($channel_id, $video_id); } /** * Resolve the Livestream shortcode to get the * full url to the correct channel/video. */ function media_livestream_get_short_code($shortcode) { // Set options to fetch the header redirects Livestream trows at us. $options = array( CURLOPT_HEADER => FALSE, // Don not return headers. Not sure. CURLOPT_FOLLOWLOCATION => TRUE, // Follow the link. CURLOPT_RETURNTRANSFER => TRUE, // This is not what you think. // (see the manual, ^^ still fetches the whole page if i disable it) CURLOPT_ENCODING => "", // Do not specify encoding. CURLOPT_CONNECTTIMEOUT => 100, // Connect timeout. CURLOPT_TIMEOUT => 100, // Response timeout. CURLOPT_MAXREDIRS => 2, // Stop after 2 redirects. CURLOPT_AUTOREFERER => TRUE, // Set the referer on redirect. CURLOPT_USERAGENT => "Drupal", // Browser ID. ); // Initialise curl request. $handler = curl_init($shortcode); curl_setopt_array($handler, $options); // Execute our curl request with our Livesteam shortcode url. $page = curl_exec($handler); $header = curl_getinfo($handler); $errornr = curl_errno($handler); $errormsg = curl_error($handler); // Close request. curl_close($handler); // We don't really need the page content, we're here for the redirect url. $header['page'] = $page; // And we also do not use errors at the moment, but maybe we should. $header['errornr'] = $errornr; $header['errormsg'] = $errormsg; return $header; } echo parse('www.livestream.com/lukeestv/video?clipId=flv_92609a8d-afa6-4832-a8b2-ac4dc2925f4b&utm_source=lslibrary&utm_medium=ui-thumb');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/doXgm
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  133     0  E >   INIT_FCALL                                               'parse'
          1        SEND_VAL                                                 'www.livestream.com%2Flukeestv%2Fvideo%3FclipId%3Dflv_92609a8d-afa6-4832-a8b2-ac4dc2925f4b%26utm_source%3Dlslibrary%26utm_medium%3Dui-thumb'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function validid:
Finding entry points
Branch analysis from position: 0
4 jumps found. (Code = 188) Position 1 = 9, Position 2 = 19, Position 3 = 30, Position 4 = 4
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 30
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 19
Branch analysis from position: 9
filename:       /in/doXgm
function name:  validId
number of ops:  34
compiled vars:  !0 = $cid, !1 = $vid, !2 = $type, !3 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3      > SWITCH_STRING                                            !2, [ 'channel':->9, 'video':->19, ], ->30
    5     4    >   IS_EQUAL                                                 !2, 'channel'
          5      > JMPNZ                                                    ~4, ->9
    9     6    >   IS_EQUAL                                                 !2, 'video'
          7      > JMPNZ                                                    ~4, ->19
          8    > > JMP                                                      ->30
    6     9    >   INIT_FCALL_BY_NAME                                       'drupal_http_request'
         10        CONCAT                                           ~5      'http%3A%2F%2Fx', !0
         11        CONCAT                                           ~6      ~5, 'x.'
         12        FETCH_CONSTANT                                   ~7      'MEDIA_LIVESTREAM_REST_CHANNEL_API'
         13        CONCAT                                           ~8      ~6, ~7
         14        CONCAT                                           ~9      ~8, 'info.json'
         15        SEND_VAL_EX                                              ~9
         16        DO_FCALL                                      0  $10     
         17        ASSIGN                                                   !3, $10
    7    18      > JMP                                                      ->30
   10    19    >   INIT_FCALL_BY_NAME                                       'drupal_http_request'
         20        CONCAT                                           ~12     'http%3A%2F%2Fx', !0
         21        CONCAT                                           ~13     ~12, 'x.'
         22        FETCH_CONSTANT                                   ~14     'MEDIA_LIVESTREAM_REST_CHANNEL_API'
         23        CONCAT                                           ~15     ~13, ~14
         24        CONCAT                                           ~16     ~15, 'clipdetails.json%3Fid%3D'
         25        CONCAT                                           ~17     ~16, !1
         26        SEND_VAL_EX                                              ~17
         27        DO_FCALL                                      0  $18     
         28        ASSIGN                                                   !3, $18
   11    29      > JMP                                                      ->30
   13    30    >   FETCH_OBJ_R                                      ~20     !3, 'code'
         31        IS_EQUAL                                         ~21     ~20, 200
         32      > RETURN                                                   ~21
   14    33*     > RETURN                                                   null

End of function validid

Function parse:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
2 jumps found. (Code = 46) Position 1 = 25, Position 2 = 31
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 41
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 148
Branch analysis from position: 148
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
2 jumps found. (Code = 46) Position 1 = 43, Position 2 = 49
Branch analysis from position: 43
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 59
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 148
Branch analysis from position: 148
Branch analysis from position: 59
2 jumps found. (Code = 46) Position 1 = 61, Position 2 = 67
Branch analysis from position: 61
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 77
Branch analysis from position: 68
1 jumps found. (Code = 42) Position 1 = 148
Branch analysis from position: 148
Branch analysis from position: 77
2 jumps found. (Code = 46) Position 1 = 79, Position 2 = 85
Branch analysis from position: 79
2 jumps found. (Code = 43) Position 1 = 86, Position 2 = 95
Branch analysis from position: 86
1 jumps found. (Code = 42) Position 1 = 148
Branch analysis from position: 148
Branch analysis from position: 95
2 jumps found. (Code = 46) Position 1 = 97, Position 2 = 103
Branch analysis from position: 97
2 jumps found. (Code = 43) Position 1 = 104, Position 2 = 113
Branch analysis from position: 104
1 jumps found. (Code = 42) Position 1 = 148
Branch analysis from position: 148
Branch analysis from position: 113
2 jumps found. (Code = 46) Position 1 = 115, Position 2 = 121
Branch analysis from position: 115
2 jumps found. (Code = 43) Position 1 = 122, Position 2 = 131
Branch analysis from position: 122
1 jumps found. (Code = 42) Position 1 = 148
Branch analysis from position: 148
Branch analysis from position: 131
2 jumps found. (Code = 46) Position 1 = 133, Position 2 = 139
Branch analysis from position: 133
2 jumps found. (Code = 43) Position 1 = 140, Position 2 = 148
Branch analysis from position: 140
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 148
Branch analysis from position: 139
Branch analysis from position: 121
Branch analysis from position: 103
Branch analysis from position: 85
Branch analysis from position: 67
Branch analysis from position: 49
Branch analysis from position: 31
Branch analysis from position: 23
Branch analysis from position: 14
filename:       /in/doXgm
function name:  parse
number of ops:  152
compiled vars:  !0 = $embedCode, !1 = $match, !2 = $matches, !3 = $headers, !4 = $channel_id, !5 = $video_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   17     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !0, $6
   18     5        ASSIGN                                                   !1, <false>
   21     6        BOOL_NOT                                         ~9      !1
          7      > JMPZ_EX                                          ~9      ~9, ->14
          8    >   INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%40livestre%5C.am%2F%28%5B0-9a-zA-Z%5C-%5D%2B%29%24%40i'
         10        SEND_VAR                                                 !0
         11        SEND_REF                                                 !2
         12        DO_ICALL                                         $10     
         13        BOOL                                             ~9      $10
         14    > > JMPZ                                                     ~9, ->23
   22    15    >   INIT_FCALL_BY_NAME                                       'media_livestream_get_short_code'
         16        CHECK_FUNC_ARG                                           
         17        FETCH_DIM_FUNC_ARG                               $11     !2, 0
         18        SEND_FUNC_ARG                                            $11
         19        DO_FCALL                                      0  $12     
         20        ASSIGN                                                   !3, $12
   23    21        FETCH_DIM_R                                      ~14     !3, 'url'
         22        ASSIGN                                                   !0, ~14
   28    23    >   BOOL_NOT                                         ~16     !1
         24      > JMPZ_EX                                          ~16     ~16, ->31
         25    >   INIT_FCALL                                               'preg_match'
         26        SEND_VAL                                                 '%40livestream%5C.com%2F%28%5B0-9a-zA-Z%5C-%5D%2B%29%24%40i'
         27        SEND_VAR                                                 !0
         28        SEND_REF                                                 !2
         29        DO_ICALL                                         $17     
         30        BOOL                                             ~16     $17
         31    > > JMPZ                                                     ~16, ->41
   29    32    >   ASSIGN                                                   !1, <true>
   30    33        FETCH_THIS                                       $19     
         34        ASSIGN_OBJ                                               $19, 'type'
         35        OP_DATA                                                  'channel'
   31    36        FETCH_DIM_R                                      ~21     !2, 1
         37        ASSIGN                                                   !4, ~21
   32    38        FETCH_DIM_R                                      ~23     !2, 1
         39        ASSIGN                                                   !5, ~23
         40      > JMP                                                      ->148
   36    41    >   BOOL_NOT                                         ~25     !1
         42      > JMPZ_EX                                          ~25     ~25, ->49
         43    >   INIT_FCALL                                               'preg_match'
         44        SEND_VAL                                                 '%40livestream%5C.com%2Fembed%2F%28%5B0-9a-zA-Z%5C-%5D%2B%29%3F%28%28%3F%21clip%7CclipId%29.%29%2A%24%40i'
         45        SEND_VAR                                                 !0
         46        SEND_REF                                                 !2
         47        DO_ICALL                                         $26     
         48        BOOL                                             ~25     $26
         49    > > JMPZ                                                     ~25, ->59
   37    50    >   ASSIGN                                                   !1, <true>
   38    51        FETCH_THIS                                       $28     
         52        ASSIGN_OBJ                                               $28, 'type'
         53        OP_DATA                                                  'channel'
   39    54        FETCH_DIM_R                                      ~30     !2, 1
         55        ASSIGN                                                   !4, ~30
   40    56        FETCH_DIM_R                                      ~32     !2, 1
         57        ASSIGN                                                   !5, ~32
         58      > JMP                                                      ->148
   45    59    >   BOOL_NOT                                         ~34     !1
         60      > JMPZ_EX                                          ~34     ~34, ->67
         61    >   INIT_FCALL                                               'preg_match'
         62        SEND_VAL                                                 '%40livestream%5C.com%2F%28%5B0-9a-zA-Z%5C-%5D%2B%29.%2A%2F%28video%7Cshare%29.%2A%28%28clipId%7Cclip%29%3D%28%5B%5E%5C%26%27%22+%5D%2B%29%29%40i'
         63        SEND_VAR                                                 !0
         64        SEND_REF                                                 !2
         65        DO_ICALL                                         $35     
         66        BOOL                                             ~34     $35
         67    > > JMPZ                                                     ~34, ->77
   46    68    >   ASSIGN                                                   !1, <true>
   47    69        FETCH_THIS                                       $37     
         70        ASSIGN_OBJ                                               $37, 'type'
         71        OP_DATA                                                  'video'
   48    72        FETCH_DIM_R                                      ~39     !2, 1
         73        ASSIGN                                                   !4, ~39
   49    74        FETCH_DIM_R                                      ~41     !2, 5
         75        ASSIGN                                                   !5, ~41
         76      > JMP                                                      ->148
   54    77    >   BOOL_NOT                                         ~43     !1
         78      > JMPZ_EX                                          ~43     ~43, ->85
         79    >   INIT_FCALL                                               'preg_match'
         80        SEND_VAL                                                 '%40livestream%5C.com%2F%28embed%29%2F%28%5B0-9a-zA-Z%5C-%5D%2B%29.%2A%28%28clipId%7Cclip%29%3D%28%5B%5E%5C%26%27%22+%5D%2B%29%29%40i'
         81        SEND_VAR                                                 !0
         82        SEND_REF                                                 !2
         83        DO_ICALL                                         $44     
         84        BOOL                                             ~43     $44
         85    > > JMPZ                                                     ~43, ->95
   55    86    >   ASSIGN                                                   !1, <true>
   56    87        FETCH_THIS                                       $46     
         88        ASSIGN_OBJ                                               $46, 'type'
         89        OP_DATA                                                  'video'
   57    90        FETCH_DIM_R                                      ~48     !2, 2
         91        ASSIGN                                                   !4, ~48
   58    92        FETCH_DIM_R                                      ~50     !2, 5
         93        ASSIGN                                                   !5, ~50
         94      > JMP                                                      ->148
   63    95    >   BOOL_NOT                                         ~52     !1
         96      > JMPZ_EX                                          ~52     ~52, ->103
         97    >   INIT_FCALL                                               'preg_match'
         98        SEND_VAL                                                 '%40livestream%5C.com%2F%28%5B0-9a-zA-Z%5C-%5D%2B%29%2F%28share%29%40i'
         99        SEND_VAR                                                 !0
        100        SEND_REF                                                 !2
        101        DO_ICALL                                         $53     
        102        BOOL                                             ~52     $53
        103    > > JMPZ                                                     ~52, ->113
   64   104    >   ASSIGN                                                   !1, <true>
   65   105        FETCH_THIS                                       $55     
        106        ASSIGN_OBJ                                               $55, 'type'
        107        OP_DATA                                                  'channel'
   66   108        FETCH_DIM_R                                      ~57     !2, 1
        109        ASSIGN                                                   !4, ~57
   67   110        FETCH_DIM_R                                      ~59     !2, 1
        111        ASSIGN                                                   !5, ~59
        112      > JMP                                                      ->148
   72   113    >   BOOL_NOT                                         ~61     !1
        114      > JMPZ_EX                                          ~61     ~61, ->121
        115    >   INIT_FCALL                                               'preg_match'
        116        SEND_VAL                                                 '%40livestream%5C.com%2F%28grid%29%2FLSPlayer.swf%5C%3F%28channel%29%3D%28%5B0-9a-zA-Z%5C-%5D%2B%29%26amp%3B%28clipId%7Cclip%29%3D%28%5B%5E%5C%26%27%22+%5D%2B%29%40i'
        117        SEND_VAR                                                 !0
        118        SEND_REF                                                 !2
        119        DO_ICALL                                         $62     
        120        BOOL                                             ~61     $62
        121    > > JMPZ                                                     ~61, ->131
   73   122    >   ASSIGN                                                   !1, <true>
   74   123        FETCH_THIS                                       $64     
        124        ASSIGN_OBJ                                               $64, 'type'
        125        OP_DATA                                                  'video'
   75   126        FETCH_DIM_R                                      ~66     !2, 3
        127        ASSIGN                                                   !4, ~66
   76   128        FETCH_DIM_R                                      ~68     !2, 5
        129        ASSIGN                                                   !5, ~68
        130      > JMP                                                      ->148
   81   131    >   BOOL_NOT                                         ~70     !1
        132      > JMPZ_EX                                          ~70     ~70, ->139
        133    >   INIT_FCALL                                               'preg_match'
        134        SEND_VAL                                                 '%40livestream%5C.com%2Fgrid%2FLSPlayer%5C.swf.%3Fchannel%3D%28%5B0-9a-zA-Z%5C-%5D%2B%29%40i'
        135        SEND_VAR                                                 !0
        136        SEND_REF                                                 !2
        137        DO_ICALL                                         $71     
        138        BOOL                                             ~70     $71
        139    > > JMPZ                                                     ~70, ->148
   82   140    >   ASSIGN                                                   !1, <true>
   83   141        FETCH_THIS                                       $73     
        142        ASSIGN_OBJ                                               $73, 'type'
        143        OP_DATA                                                  'channel'
   84   144        FETCH_DIM_R                                      ~75     !2, 1
        145        ASSIGN                                                   !4, ~75
   85   146        FETCH_DIM_R                                      ~77     !2, 1
        147        ASSIGN                                                   !5, ~77
   90   148    >   INIT_ARRAY                                       ~79     !4
        149        ADD_ARRAY_ELEMENT                                ~79     !5
        150      > RETURN                                                   ~79
   92   151*     > RETURN                                                   null

End of function parse

Function media_livestream_get_short_code:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/doXgm
function name:  media_livestream_get_short_code
number of ops:  55
compiled vars:  !0 = $shortcode, !1 = $options, !2 = $handler, !3 = $page, !4 = $header, !5 = $errornr, !6 = $errormsg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   98     0  E >   RECV                                             !0      
  101     1        FETCH_CONSTANT                                   ~7      'CURLOPT_HEADER'
          2        INIT_ARRAY                                       ~8      <false>, ~7
  102     3        FETCH_CONSTANT                                   ~9      'CURLOPT_FOLLOWLOCATION'
  101     4        ADD_ARRAY_ELEMENT                                ~8      <true>, ~9
  103     5        FETCH_CONSTANT                                   ~10     'CURLOPT_RETURNTRANSFER'
  101     6        ADD_ARRAY_ELEMENT                                ~8      <true>, ~10
  105     7        FETCH_CONSTANT                                   ~11     'CURLOPT_ENCODING'
          8        ADD_ARRAY_ELEMENT                                ~8      '', ~11
  106     9        FETCH_CONSTANT                                   ~12     'CURLOPT_CONNECTTIMEOUT'
         10        ADD_ARRAY_ELEMENT                                ~8      100, ~12
  107    11        FETCH_CONSTANT                                   ~13     'CURLOPT_TIMEOUT'
         12        ADD_ARRAY_ELEMENT                                ~8      100, ~13
  108    13        FETCH_CONSTANT                                   ~14     'CURLOPT_MAXREDIRS'
         14        ADD_ARRAY_ELEMENT                                ~8      2, ~14
  109    15        FETCH_CONSTANT                                   ~15     'CURLOPT_AUTOREFERER'
  101    16        ADD_ARRAY_ELEMENT                                ~8      <true>, ~15
  110    17        FETCH_CONSTANT                                   ~16     'CURLOPT_USERAGENT'
         18        ADD_ARRAY_ELEMENT                                ~8      'Drupal', ~16
  100    19        ASSIGN                                                   !1, ~8
  114    20        INIT_FCALL_BY_NAME                                       'curl_init'
         21        SEND_VAR_EX                                              !0
         22        DO_FCALL                                      0  $18     
         23        ASSIGN                                                   !2, $18
  115    24        INIT_FCALL_BY_NAME                                       'curl_setopt_array'
         25        SEND_VAR_EX                                              !2
         26        SEND_VAR_EX                                              !1
         27        DO_FCALL                                      0          
  117    28        INIT_FCALL_BY_NAME                                       'curl_exec'
         29        SEND_VAR_EX                                              !2
         30        DO_FCALL                                      0  $21     
         31        ASSIGN                                                   !3, $21
  118    32        INIT_FCALL_BY_NAME                                       'curl_getinfo'
         33        SEND_VAR_EX                                              !2
         34        DO_FCALL                                      0  $23     
         35        ASSIGN                                                   !4, $23
  119    36        INIT_FCALL_BY_NAME                                       'curl_errno'
         37        SEND_VAR_EX                                              !2
         38        DO_FCALL                                      0  $25     
         39        ASSIGN                                                   !5, $25
  120    40        INIT_FCALL_BY_NAME                                       'curl_error'
         41        SEND_VAR_EX                                              !2
         42        DO_FCALL                                      0  $27     
         43        ASSIGN                                                   !6, $27
  122    44        INIT_FCALL_BY_NAME                                       'curl_close'
         45        SEND_VAR_EX                                              !2
         46        DO_FCALL                                      0          
  125    47        ASSIGN_DIM                                               !4, 'page'
         48        OP_DATA                                                  !3
  127    49        ASSIGN_DIM                                               !4, 'errornr'
         50        OP_DATA                                                  !5
  128    51        ASSIGN_DIM                                               !4, 'errormsg'
         52        OP_DATA                                                  !6
  130    53      > RETURN                                                   !4
  131    54*     > RETURN                                                   null

End of function media_livestream_get_short_code

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.43 ms | 1423 KiB | 18 Q