3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://10.0.0.222/iptecno/posicio-global?destination=node/6"; $postData = array("name" => "roberto", "pass" => "Razorin00", "op" => "Log in", "form_id" => "user_login_block"); $elements = array(); foreach ($postData as $name=>$value) { $elements[] = "{$name}=".urlencode($value); } $handler = curl_init(); curl_setopt($handler, CURLOPT_URL, $url); curl_setopt($handler, CURLOPT_POST,true); curl_setopt($handler, CURLOPT_POSTFIELDS, $elements); $response = curl_exec ($handler); curl_close($handler); print_r($response);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/4nWYX
function name:  (null)
number of ops:  48
compiled vars:  !0 = $url, !1 = $postData, !2 = $elements, !3 = $value, !4 = $name, !5 = $handler, !6 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2F10.0.0.222%2Fiptecno%2Fposicio-global%3Fdestination%3Dnode%2F6'
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3      > FE_RESET_R                                       $10     !1, ->15
          4    > > FE_FETCH_R                                       ~11     $10, !3, ->15
          5    >   ASSIGN                                                   !4, ~11
    7     6        NOP                                                      
          7        FAST_CONCAT                                      ~14     !4, '%3D'
          8        INIT_FCALL                                               'urlencode'
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                         $15     
         11        CONCAT                                           ~16     ~14, $15
         12        ASSIGN_DIM                                               !2
         13        OP_DATA                                                  ~16
    6    14      > JMP                                                      ->4
         15    >   FE_FREE                                                  $10
    9    16        INIT_FCALL_BY_NAME                                       'curl_init'
         17        DO_FCALL                                      0  $17     
         18        ASSIGN                                                   !5, $17
   10    19        INIT_FCALL_BY_NAME                                       'curl_setopt'
         20        SEND_VAR_EX                                              !5
         21        FETCH_CONSTANT                                   ~19     'CURLOPT_URL'
         22        SEND_VAL_EX                                              ~19
         23        SEND_VAR_EX                                              !0
         24        DO_FCALL                                      0          
   11    25        INIT_FCALL_BY_NAME                                       'curl_setopt'
         26        SEND_VAR_EX                                              !5
         27        FETCH_CONSTANT                                   ~21     'CURLOPT_POST'
         28        SEND_VAL_EX                                              ~21
         29        SEND_VAL_EX                                              <true>
         30        DO_FCALL                                      0          
   12    31        INIT_FCALL_BY_NAME                                       'curl_setopt'
         32        SEND_VAR_EX                                              !5
         33        FETCH_CONSTANT                                   ~23     'CURLOPT_POSTFIELDS'
         34        SEND_VAL_EX                                              ~23
         35        SEND_VAR_EX                                              !2
         36        DO_FCALL                                      0          
   13    37        INIT_FCALL_BY_NAME                                       'curl_exec'
         38        SEND_VAR_EX                                              !5
         39        DO_FCALL                                      0  $25     
         40        ASSIGN                                                   !6, $25
   14    41        INIT_FCALL_BY_NAME                                       'curl_close'
         42        SEND_VAR_EX                                              !5
         43        DO_FCALL                                      0          
   15    44        INIT_FCALL                                               'print_r'
         45        SEND_VAR                                                 !6
         46        DO_ICALL                                                 
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.8 ms | 1404 KiB | 17 Q