3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = $_GET["u"]; function curl($url) { $user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com'); $icerik = curl_exec($ch); curl_close($ch); return $icerik; } $cek = json_decode(curl('http://ok.ru/dk?cmd=videoPlayerMetadata&mid='.$id.''), TRUE); echo '<script src="jwplayer.js" ></script> <script>jwplayer.key="oPV8Jbpvmqf40g/DmByqKIhJrLQpdWwffvN3+w==";</script> <div id="myElement">Loading the player...</div> <script> jwplayer("myElement").setup({ width: "100%", height: "100%", sources: [{'; foreach($cek['videos'] as $veriler){ @$kaliteler .= ' file : "'.$veriler["url"].'", type: "mp4", label: "'.$veriler["name"].'"}, {'; } echo substr($kaliteler, 0, -4); echo '], tracks: [ { file: "1.srt" }] }); </script>'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 27
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 27
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/ituX8
function name:  (null)
number of ops:  36
compiled vars:  !0 = $id, !1 = $cek, !2 = $veriler, !3 = $kaliteler
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                      global              ~4      '_GET'
          1        FETCH_DIM_R                                      ~5      ~4, 'u'
          2        ASSIGN                                                   !0, ~5
   21     3        INIT_FCALL                                               'json_decode'
          4        INIT_FCALL                                               'curl'
          5        CONCAT                                           ~7      'http%3A%2F%2Fok.ru%2Fdk%3Fcmd%3DvideoPlayerMetadata%26mid%3D', !0
          6        CONCAT                                           ~8      ~7, ''
          7        SEND_VAL                                                 ~8
          8        DO_FCALL                                      0  $9      
          9        SEND_VAR                                                 $9
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !1, $10
   24    13        ECHO                                                     '%3Cscript+src%3D%22jwplayer.js%22+%3E%3C%2Fscript%3E%0A%3Cscript%3Ejwplayer.key%3D%22oPV8Jbpvmqf40g%2FDmByqKIhJrLQpdWwffvN3%2Bw%3D%3D%22%3B%3C%2Fscript%3E%0A%3Cdiv+id%3D%22myElement%22%3ELoading+the+player...%3C%2Fdiv%3E%0A%3Cscript%3E%0A++++jwplayer%28%22myElement%22%29.setup%28%7B%0A%09+++%09++width%3A+%22100%25%22%2C%0A%09%09++height%3A+%22100%25%22%2C%0A++++++sources%3A+%5B%7B'
   33    14        FETCH_DIM_R                                      ~12     !1, 'videos'
         15      > FE_RESET_R                                       $13     ~12, ->27
         16    > > FE_FETCH_R                                               $13, !2, ->27
   34    17    >   BEGIN_SILENCE                                    ~14     
   35    18        FETCH_DIM_R                                      ~15     !2, 'url'
         19        CONCAT                                           ~16     '%0Afile+%3A+%22', ~15
         20        CONCAT                                           ~17     ~16, '%22%2C%0Atype%3A+%22mp4%22%2C%0Alabel%3A+%22'
   37    21        FETCH_DIM_R                                      ~18     !2, 'name'
         22        CONCAT                                           ~19     ~17, ~18
         23        CONCAT                                           ~20     ~19, '%22%7D%2C%0A%0A%7B'
         24        ASSIGN_OP                                     8          !3, ~20
         25        END_SILENCE                                              ~14
   33    26      > JMP                                                      ->16
         27    >   FE_FREE                                                  $13
   41    28        INIT_FCALL                                               'substr'
         29        SEND_VAR                                                 !3
         30        SEND_VAL                                                 0
         31        SEND_VAL                                                 -4
         32        DO_ICALL                                         $22     
         33        ECHO                                                     $22
   42    34        ECHO                                                     '%5D%2C%0Atracks%3A%0A++++++++++++++++%5B%0A++++++++++++++++++++%7B+file%3A+%221.srt%22%0A%09%09%09%09%09%7D%5D%0A++++%7D%29%3B%0A%3C%2Fscript%3E'
   50    35      > RETURN                                                   1

Function curl:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ituX8
function name:  curl
number of ops:  44
compiled vars:  !0 = $url, !1 = $user_agent, !2 = $ch, !3 = $icerik
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        ASSIGN                                                   !1, 'Mozilla%2F5.0+%28Windows+NT+6.1%3B+WOW64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F41.0.2227.0+Safari%2F537.36'
    8     2        INIT_FCALL_BY_NAME                                       'curl_init'
          3        DO_FCALL                                      0  $5      
          4        ASSIGN                                                   !2, $5
    9     5        INIT_FCALL_BY_NAME                                       'curl_setopt'
          6        SEND_VAR_EX                                              !2
          7        FETCH_CONSTANT                                   ~7      'CURLOPT_URL'
          8        SEND_VAL_EX                                              ~7
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0          
   10    11        INIT_FCALL_BY_NAME                                       'curl_setopt'
         12        SEND_VAR_EX                                              !2
         13        FETCH_CONSTANT                                   ~9      'CURLOPT_RETURNTRANSFER'
         14        SEND_VAL_EX                                              ~9
         15        SEND_VAL_EX                                              1
         16        DO_FCALL                                      0          
   11    17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !2
         19        FETCH_CONSTANT                                   ~11     'CURLOPT_FOLLOWLOCATION'
         20        SEND_VAL_EX                                              ~11
         21        SEND_VAL_EX                                              <true>
         22        DO_FCALL                                      0          
   12    23        INIT_FCALL_BY_NAME                                       'curl_setopt'
         24        SEND_VAR_EX                                              !2
         25        FETCH_CONSTANT                                   ~13     'CURLOPT_USERAGENT'
         26        SEND_VAL_EX                                              ~13
         27        SEND_VAR_EX                                              !1
         28        DO_FCALL                                      0          
   13    29        INIT_FCALL_BY_NAME                                       'curl_setopt'
         30        SEND_VAR_EX                                              !2
         31        FETCH_CONSTANT                                   ~15     'CURLOPT_REFERER'
         32        SEND_VAL_EX                                              ~15
         33        SEND_VAL_EX                                              'http%3A%2F%2Fwww.google.com'
         34        DO_FCALL                                      0          
   14    35        INIT_FCALL_BY_NAME                                       'curl_exec'
         36        SEND_VAR_EX                                              !2
         37        DO_FCALL                                      0  $17     
         38        ASSIGN                                                   !3, $17
   15    39        INIT_FCALL_BY_NAME                                       'curl_close'
         40        SEND_VAR_EX                                              !2
         41        DO_FCALL                                      0          
   16    42      > RETURN                                                   !3
   17    43*     > RETURN                                                   null

End of function curl

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.24 ms | 1407 KiB | 18 Q