3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "start"; generateVote(); echo "done"; function generateEmail($email) { return $email; } function generateVote() { $url='http://www.psyczykoty.pl/save-vote'; $c=curl_init(); curl_setopt($c, CURLOPT_URL, $url); curl_setopt($c, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($c, CURLOPT_POST, 1); curl_setopt($c,CURLOPT_HTTPHEADER,array( 'Host: www.psyczykoty.pl', 'Connection: keep-alive', 'Content-Length: 162', 'Pragma: no-cache', 'Cache-Control: no-cache', 'Accept: */*', 'Origin: http://www.psyczykoty.pl', 'X-Requested-With: XMLHttpRequest', 'User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36', 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8', 'Referer: http://www.psyczykoty.pl/glosuj/1/popularne', 'Accept-Encoding: gzip, deflate', 'Accept-Language: pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4', 'Cookie: fera-psyczykoty=5fogco6tk0m4sn2rq458qak0l2; _ga=GA1.2.57483650.1444392866; cSID_VM=1444854938606; _gat=1' )); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_FOLLOWLOCATION, FALSE); curl_setopt($c, CURLOPT_POSTFIELDS, "email=pedro92vb%40gmail.com&id_gallery=5617ad20e3ba9644398b4580&username=&city=&petname=&type=default&agree=1&_token=ffI-Tvxc9tC_Eb3tDPIladvoXHPrRhcRoJDp4rbG5F4"); $result = curl_exec($c); var_dump(json_decode($result)); curl_close($c); flush(); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XHdlj
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'start'
    3     1        INIT_FCALL_BY_NAME                                       'generateVote'
          2        DO_FCALL                                      0          
    4     3        ECHO                                                     'done'
   40     4      > RETURN                                                   1

Function generateemail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XHdlj
function name:  generateEmail
number of ops:  3
compiled vars:  !0 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1      > RETURN                                                   !0
    8     2*     > RETURN                                                   null

End of function generateemail

Function generatevote:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XHdlj
function name:  generateVote
number of ops:  62
compiled vars:  !0 = $url, !1 = $c, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.psyczykoty.pl%2Fsave-vote'
   12     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        DO_FCALL                                      0  $4      
          3        ASSIGN                                                   !1, $4
   13     4        INIT_FCALL_BY_NAME                                       'curl_setopt'
          5        SEND_VAR_EX                                              !1
          6        FETCH_CONSTANT                                   ~6      'CURLOPT_URL'
          7        SEND_VAL_EX                                              ~6
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
   14    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !1
         12        FETCH_CONSTANT                                   ~8      'CURLOPT_SSL_VERIFYPEER'
         13        SEND_VAL_EX                                              ~8
         14        SEND_VAL_EX                                              <false>
         15        DO_FCALL                                      0          
   15    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !1
         18        FETCH_CONSTANT                                   ~10     'CURLOPT_POST'
         19        SEND_VAL_EX                                              ~10
         20        SEND_VAL_EX                                              1
         21        DO_FCALL                                      0          
   16    22        INIT_FCALL_BY_NAME                                       'curl_setopt'
         23        SEND_VAR_EX                                              !1
         24        FETCH_CONSTANT                                   ~12     'CURLOPT_HTTPHEADER'
         25        SEND_VAL_EX                                              ~12
   17    26        SEND_VAL_EX                                              <array>
         27        DO_FCALL                                      0          
   32    28        INIT_FCALL_BY_NAME                                       'curl_setopt'
         29        SEND_VAR_EX                                              !1
         30        FETCH_CONSTANT                                   ~14     'CURLOPT_RETURNTRANSFER'
         31        SEND_VAL_EX                                              ~14
         32        SEND_VAL_EX                                              1
         33        DO_FCALL                                      0          
   33    34        INIT_FCALL_BY_NAME                                       'curl_setopt'
         35        SEND_VAR_EX                                              !1
         36        FETCH_CONSTANT                                   ~16     'CURLOPT_FOLLOWLOCATION'
         37        SEND_VAL_EX                                              ~16
         38        SEND_VAL_EX                                              <false>
         39        DO_FCALL                                      0          
   34    40        INIT_FCALL_BY_NAME                                       'curl_setopt'
         41        SEND_VAR_EX                                              !1
         42        FETCH_CONSTANT                                   ~18     'CURLOPT_POSTFIELDS'
         43        SEND_VAL_EX                                              ~18
         44        SEND_VAL_EX                                              'email%3Dpedro92vb%2540gmail.com%26id_gallery%3D5617ad20e3ba9644398b4580%26username%3D%26city%3D%26petname%3D%26type%3Ddefault%26agree%3D1%26_token%3DffI-Tvxc9tC_Eb3tDPIladvoXHPrRhcRoJDp4rbG5F4'
         45        DO_FCALL                                      0          
   35    46        INIT_FCALL_BY_NAME                                       'curl_exec'
         47        SEND_VAR_EX                                              !1
         48        DO_FCALL                                      0  $20     
         49        ASSIGN                                                   !2, $20
   36    50        INIT_FCALL                                               'var_dump'
         51        INIT_FCALL                                               'json_decode'
         52        SEND_VAR                                                 !2
         53        DO_ICALL                                         $22     
         54        SEND_VAR                                                 $22
         55        DO_ICALL                                                 
   37    56        INIT_FCALL_BY_NAME                                       'curl_close'
         57        SEND_VAR_EX                                              !1
         58        DO_FCALL                                      0          
   38    59        INIT_FCALL                                               'flush'
         60        DO_ICALL                                                 
   39    61      > RETURN                                                   null

End of function generatevote

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.05 ms | 1400 KiB | 19 Q