3v4l.org

run code in 300+ PHP versions simultaneously
<?php class XMLTransactionHander { public function __construct($params) { $this->URL = $params[0]; $this->XMLRequest = $params[1]; $this->XMLResponseRaw = $params[2]; $this->XPath = $params[3]; $this->errno = $params[4]; } function curlRequest() { // Configure headers, etc for request $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, $this->URL); curl_setopt($ch, CURLOPT_TIMEOUT, 180); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $this->XMLRequest); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSLVERSION, 3); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $httpHeader = array("Content-Type: text/xml; charset=UTF-8", "Content-Encoding: UTF-8"); curl_setopt($ch, CURLOPT_HTTPHEADER, $httpHeader); // Execute request, store response and HTTP response code $data=curl_exec($ch); $this->errno = curl_getinfo( $ch, CURLINFO_HTTP_CODE ); curl_close($ch); return($data); } function something(){ return($this->URL.' '.$this->XMLRequest); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fbBRF
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   41     0  E > > RETURN                                                   1

Class XMLTransactionHander:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fbBRF
function name:  __construct
number of ops:  17
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        FETCH_DIM_R                                      ~2      !0, 0
          2        ASSIGN_OBJ                                               'URL'
          3        OP_DATA                                                  ~2
    7     4        FETCH_DIM_R                                      ~4      !0, 1
          5        ASSIGN_OBJ                                               'XMLRequest'
          6        OP_DATA                                                  ~4
    8     7        FETCH_DIM_R                                      ~6      !0, 2
          8        ASSIGN_OBJ                                               'XMLResponseRaw'
          9        OP_DATA                                                  ~6
    9    10        FETCH_DIM_R                                      ~8      !0, 3
         11        ASSIGN_OBJ                                               'XPath'
         12        OP_DATA                                                  ~8
   10    13        FETCH_DIM_R                                      ~10     !0, 4
         14        ASSIGN_OBJ                                               'errno'
         15        OP_DATA                                                  ~10
   11    16      > RETURN                                                   null

End of function __construct

Function curlrequest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fbBRF
function name:  curlRequest
number of ops:  90
compiled vars:  !0 = $ch, !1 = $httpHeader, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL_BY_NAME                                       'curl_init'
          1        DO_FCALL                                      0  $3      
          2        ASSIGN                                                   !0, $3
   16     3        INIT_FCALL_BY_NAME                                       'curl_setopt'
          4        SEND_VAR_EX                                              !0
          5        FETCH_CONSTANT                                   ~5      'CURLOPT_URL'
          6        SEND_VAL_EX                                              ~5
          7        CHECK_FUNC_ARG                                           
          8        FETCH_OBJ_FUNC_ARG                               $6      'URL'
          9        SEND_FUNC_ARG                                            $6
         10        DO_FCALL                                      0          
   17    11        INIT_FCALL_BY_NAME                                       'curl_setopt'
         12        SEND_VAR_EX                                              !0
         13        FETCH_CONSTANT                                   ~8      'CURLOPT_TIMEOUT'
         14        SEND_VAL_EX                                              ~8
         15        SEND_VAL_EX                                              180
         16        DO_FCALL                                      0          
   18    17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !0
         19        FETCH_CONSTANT                                   ~10     'CURLOPT_HEADER'
         20        SEND_VAL_EX                                              ~10
         21        SEND_VAL_EX                                              0
         22        DO_FCALL                                      0          
   19    23        INIT_FCALL_BY_NAME                                       'curl_setopt'
         24        SEND_VAR_EX                                              !0
         25        FETCH_CONSTANT                                   ~12     'CURLOPT_RETURNTRANSFER'
         26        SEND_VAL_EX                                              ~12
         27        SEND_VAL_EX                                              1
         28        DO_FCALL                                      0          
   20    29        INIT_FCALL_BY_NAME                                       'curl_setopt'
         30        SEND_VAR_EX                                              !0
         31        FETCH_CONSTANT                                   ~14     'CURLOPT_POST'
         32        SEND_VAL_EX                                              ~14
         33        SEND_VAL_EX                                              1
         34        DO_FCALL                                      0          
   21    35        INIT_FCALL_BY_NAME                                       'curl_setopt'
         36        SEND_VAR_EX                                              !0
         37        FETCH_CONSTANT                                   ~16     'CURLOPT_POSTFIELDS'
         38        SEND_VAL_EX                                              ~16
         39        CHECK_FUNC_ARG                                           
         40        FETCH_OBJ_FUNC_ARG                               $17     'XMLRequest'
         41        SEND_FUNC_ARG                                            $17
         42        DO_FCALL                                      0          
   22    43        INIT_FCALL_BY_NAME                                       'curl_setopt'
         44        SEND_VAR_EX                                              !0
         45        FETCH_CONSTANT                                   ~19     'CURLOPT_SSL_VERIFYHOST'
         46        SEND_VAL_EX                                              ~19
         47        SEND_VAL_EX                                              1
         48        DO_FCALL                                      0          
   23    49        INIT_FCALL_BY_NAME                                       'curl_setopt'
         50        SEND_VAR_EX                                              !0
         51        FETCH_CONSTANT                                   ~21     'CURLOPT_SSL_VERIFYPEER'
         52        SEND_VAL_EX                                              ~21
         53        SEND_VAL_EX                                              <false>
         54        DO_FCALL                                      0          
   24    55        INIT_FCALL_BY_NAME                                       'curl_setopt'
         56        SEND_VAR_EX                                              !0
         57        FETCH_CONSTANT                                   ~23     'CURLOPT_SSLVERSION'
         58        SEND_VAL_EX                                              ~23
         59        SEND_VAL_EX                                              3
         60        DO_FCALL                                      0          
   25    61        INIT_FCALL_BY_NAME                                       'curl_setopt'
         62        SEND_VAR_EX                                              !0
         63        FETCH_CONSTANT                                   ~25     'CURLOPT_FOLLOWLOCATION'
         64        SEND_VAL_EX                                              ~25
         65        SEND_VAL_EX                                              <true>
         66        DO_FCALL                                      0          
   27    67        ASSIGN                                                   !1, <array>
   28    68        INIT_FCALL_BY_NAME                                       'curl_setopt'
         69        SEND_VAR_EX                                              !0
         70        FETCH_CONSTANT                                   ~28     'CURLOPT_HTTPHEADER'
         71        SEND_VAL_EX                                              ~28
         72        SEND_VAR_EX                                              !1
         73        DO_FCALL                                      0          
   31    74        INIT_FCALL_BY_NAME                                       'curl_exec'
         75        SEND_VAR_EX                                              !0
         76        DO_FCALL                                      0  $30     
         77        ASSIGN                                                   !2, $30
   32    78        INIT_FCALL_BY_NAME                                       'curl_getinfo'
         79        SEND_VAR_EX                                              !0
         80        FETCH_CONSTANT                                   ~33     'CURLINFO_HTTP_CODE'
         81        SEND_VAL_EX                                              ~33
         82        DO_FCALL                                      0  $34     
         83        ASSIGN_OBJ                                               'errno'
         84        OP_DATA                                                  $34
   33    85        INIT_FCALL_BY_NAME                                       'curl_close'
         86        SEND_VAR_EX                                              !0
         87        DO_FCALL                                      0          
   35    88      > RETURN                                                   !2
   36    89*     > RETURN                                                   null

End of function curlrequest

Function something:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fbBRF
function name:  something
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   39     0  E >   FETCH_OBJ_R                                      ~0      'URL'
          1        CONCAT                                           ~1      ~0, '+'
          2        FETCH_OBJ_R                                      ~2      'XMLRequest'
          3        CONCAT                                           ~3      ~1, ~2
          4      > RETURN                                                   ~3
   40     5*     > RETURN                                                   null

End of function something

End of class XMLTransactionHander.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.13 ms | 1403 KiB | 13 Q