3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Math(){ ?><script type="text/javascript" src="//code.jquery.com/jquery-1.11.3.min.js"></script><script type="text/javascript">Math.random();</script> <?php } ?> <?php $Url = "http://tinyz.us/dl25085"; $vars = "login_user=AmirMahmood&login_password=ammhd1374&captcha_code="; $cookie_file = file_get_contents("http://filmsdownload.tk/cookie.txt"); $ch = curl_init(); // Now set some options (most are optional) // Set URL to download curl_setopt($ch, CURLOPT_URL, $Url); // Set a referer curl_setopt($ch, CURLOPT_REFERER, "http://tinyz.us/"); // User agent curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/32.0.1700.107 Chrome/32.0.1700.107 Safari/537.36"); // Include header in result? (0 = yes, 1 = no) curl_setopt($ch, CURLOPT_HEADER, 0); // Should cURL return or print out the data? (true = return, false = print) curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // curl_setopt($ch, CURLOPT_POST, 1); // curl_setopt($ch, CURLOPT_POSTFIELDS, $vars); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // Timeout in seconds curl_setopt($ch, CURLOPT_TIMEOUT, 10); // Download the given URL, and return output $output = curl_exec($ch); // Close the cURL resource, and free system resources curl_close($ch); echo $output; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qfOV2
function name:  (null)
number of ops:  73
compiled vars:  !0 = $Url, !1 = $vars, !2 = $cookie_file, !3 = $ch, !4 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     '%0A'
   10     1        ASSIGN                                                   !0, 'http%3A%2F%2Ftinyz.us%2Fdl25085'
   11     2        ASSIGN                                                   !1, 'login_user%3DAmirMahmood%26login_password%3Dammhd1374%26captcha_code%3D'
   12     3        INIT_FCALL                                               'file_get_contents'
          4        SEND_VAL                                                 'http%3A%2F%2Ffilmsdownload.tk%2Fcookie.txt'
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
   13     7        INIT_FCALL_BY_NAME                                       'curl_init'
          8        DO_FCALL                                      0  $9      
          9        ASSIGN                                                   !3, $9
   18    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !3
         12        FETCH_CONSTANT                                   ~11     'CURLOPT_URL'
         13        SEND_VAL_EX                                              ~11
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0          
   21    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !3
         18        FETCH_CONSTANT                                   ~13     'CURLOPT_REFERER'
         19        SEND_VAL_EX                                              ~13
         20        SEND_VAL_EX                                              'http%3A%2F%2Ftinyz.us%2F'
         21        DO_FCALL                                      0          
   24    22        INIT_FCALL_BY_NAME                                       'curl_setopt'
         23        SEND_VAR_EX                                              !3
         24        FETCH_CONSTANT                                   ~15     'CURLOPT_USERAGENT'
         25        SEND_VAL_EX                                              ~15
         26        SEND_VAL_EX                                              'Mozilla%2F5.0+%28X11%3B+Linux+x86_64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Ubuntu+Chromium%2F32.0.1700.107+Chrome%2F32.0.1700.107+Safari%2F537.36'
         27        DO_FCALL                                      0          
   27    28        INIT_FCALL_BY_NAME                                       'curl_setopt'
         29        SEND_VAR_EX                                              !3
         30        FETCH_CONSTANT                                   ~17     'CURLOPT_HEADER'
         31        SEND_VAL_EX                                              ~17
         32        SEND_VAL_EX                                              0
         33        DO_FCALL                                      0          
   30    34        INIT_FCALL_BY_NAME                                       'curl_setopt'
         35        SEND_VAR_EX                                              !3
         36        FETCH_CONSTANT                                   ~19     'CURLOPT_RETURNTRANSFER'
         37        SEND_VAL_EX                                              ~19
         38        SEND_VAL_EX                                              <true>
         39        DO_FCALL                                      0          
   34    40        INIT_FCALL_BY_NAME                                       'curl_setopt'
         41        SEND_VAR_EX                                              !3
         42        FETCH_CONSTANT                                   ~21     'CURLOPT_COOKIEFILE'
         43        SEND_VAL_EX                                              ~21
         44        SEND_VAR_EX                                              !2
         45        DO_FCALL                                      0          
   35    46        INIT_FCALL_BY_NAME                                       'curl_setopt'
         47        SEND_VAR_EX                                              !3
         48        FETCH_CONSTANT                                   ~23     'CURLOPT_COOKIEJAR'
         49        SEND_VAL_EX                                              ~23
         50        SEND_VAR_EX                                              !2
         51        DO_FCALL                                      0          
   36    52        INIT_FCALL_BY_NAME                                       'curl_setopt'
         53        SEND_VAR_EX                                              !3
         54        FETCH_CONSTANT                                   ~25     'CURLOPT_FOLLOWLOCATION'
         55        SEND_VAL_EX                                              ~25
         56        SEND_VAL_EX                                              1
         57        DO_FCALL                                      0          
   38    58        INIT_FCALL_BY_NAME                                       'curl_setopt'
         59        SEND_VAR_EX                                              !3
         60        FETCH_CONSTANT                                   ~27     'CURLOPT_TIMEOUT'
         61        SEND_VAL_EX                                              ~27
         62        SEND_VAL_EX                                              10
         63        DO_FCALL                                      0          
   41    64        INIT_FCALL_BY_NAME                                       'curl_exec'
         65        SEND_VAR_EX                                              !3
         66        DO_FCALL                                      0  $29     
         67        ASSIGN                                                   !4, $29
   44    68        INIT_FCALL_BY_NAME                                       'curl_close'
         69        SEND_VAR_EX                                              !3
         70        DO_FCALL                                      0          
   46    71        ECHO                                                     !4
   47    72      > RETURN                                                   1

Function math:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qfOV2
function name:  Math
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '%3Cscript+type%3D%22text%2Fjavascript%22+src%3D%22%2F%2Fcode.jquery.com%2Fjquery-1.11.3.min.js%22%3E%3C%2Fscript%3E%3Cscript+type%3D%22text%2Fjavascript%22%3EMath.random%28%29%3B%3C%2Fscript%3E%0A'
    5     1      > RETURN                                                   null

End of function math

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.21 ms | 1400 KiB | 15 Q