3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://access.adea.org/ascenddev/CENSSAWEBSVCLIB.AUTHENTICATION'; $authentication_xml_data = array( "p_input_xml_doc" => "<?xml version=\"1.0\"?> <authentication-request> <username>dean028</username> <password>test</password> </authentication-request>" ); $curl = curl_init(); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $authentication_xml_data); curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2); $getAuthenticationResponse = curl_exec($curl); echo $getAuthenticationResponse; //$getAuthenticationResponseXML = new SimpleXMLElement($getAuthenticationResponse); //$result = (string)$getAuthenticationResponseXML;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SGh20
function name:  (null)
number of ops:  54
compiled vars:  !0 = $url, !1 = $authentication_xml_data, !2 = $curl, !3 = $getAuthenticationResponse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Faccess.adea.org%2Fascenddev%2FCENSSAWEBSVCLIB.AUTHENTICATION'
    5     1        ASSIGN                                                   !1, <array>
   13     2        INIT_FCALL_BY_NAME                                       'curl_init'
          3        DO_FCALL                                      0  $6      
          4        ASSIGN                                                   !2, $6
   15     5        INIT_FCALL_BY_NAME                                       'curl_setopt'
          6        SEND_VAR_EX                                              !2
          7        FETCH_CONSTANT                                   ~8      'CURLOPT_POST'
          8        SEND_VAL_EX                                              ~8
          9        SEND_VAL_EX                                              1
         10        DO_FCALL                                      0          
   16    11        INIT_FCALL_BY_NAME                                       'curl_setopt'
         12        SEND_VAR_EX                                              !2
         13        FETCH_CONSTANT                                   ~10     'CURLOPT_POSTFIELDS'
         14        SEND_VAL_EX                                              ~10
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
   17    17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !2
         19        FETCH_CONSTANT                                   ~12     'CURLOPT_HTTPAUTH'
         20        SEND_VAL_EX                                              ~12
         21        FETCH_CONSTANT                                   ~13     'CURLAUTH_BASIC'
         22        SEND_VAL_EX                                              ~13
         23        DO_FCALL                                      0          
   18    24        INIT_FCALL_BY_NAME                                       'curl_setopt'
         25        SEND_VAR_EX                                              !2
         26        FETCH_CONSTANT                                   ~15     'CURLOPT_URL'
         27        SEND_VAL_EX                                              ~15
         28        SEND_VAR_EX                                              !0
         29        DO_FCALL                                      0          
   19    30        INIT_FCALL_BY_NAME                                       'curl_setopt'
         31        SEND_VAR_EX                                              !2
         32        FETCH_CONSTANT                                   ~17     'CURLOPT_RETURNTRANSFER'
         33        SEND_VAL_EX                                              ~17
         34        SEND_VAL_EX                                              1
         35        DO_FCALL                                      0          
   20    36        INIT_FCALL_BY_NAME                                       'curl_setopt'
         37        SEND_VAR_EX                                              !2
         38        FETCH_CONSTANT                                   ~19     'CURLOPT_SSL_VERIFYPEER'
         39        SEND_VAL_EX                                              ~19
         40        SEND_VAL_EX                                              <false>
         41        DO_FCALL                                      0          
   21    42        INIT_FCALL_BY_NAME                                       'curl_setopt'
         43        SEND_VAR_EX                                              !2
         44        FETCH_CONSTANT                                   ~21     'CURLOPT_SSL_VERIFYHOST'
         45        SEND_VAL_EX                                              ~21
         46        SEND_VAL_EX                                              2
         47        DO_FCALL                                      0          
   24    48        INIT_FCALL_BY_NAME                                       'curl_exec'
         49        SEND_VAR_EX                                              !2
         50        DO_FCALL                                      0  $23     
         51        ASSIGN                                                   !3, $23
   27    52        ECHO                                                     !3
   32    53      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.34 ms | 1399 KiB | 13 Q