3v4l.org

run code in 300+ PHP versions simultaneously
<? $url = 'http://auctionlook-dev.azurewebsites.net/api/auctions/KY'; // Initialize the cURL session with the request URL $session = curl_init($url); // Tell cURL to return the request data curl_setopt($session, CURLOPT_RETURNTRANSFER, true); // Set the HTTP request authentication headers $headers = array( 'DecibelAppID: ' . $applicationID, 'DecibelAppKey: ' . $applicationKey, 'DecibelTimestamp: ' . date('Ymd H:i:s', time()) ); curl_setopt($session, CURLOPT_HTTPHEADER, $headers); // Execute cURL on the session handle $response = curl_exec($session); echo $response; $convertedresponse = json_decode($response, true); echo "---------------------------------------------------------------"; print_r($convertedresponse); echo '<pre>'; print_r($convertedresponse); echo '</pre>'; // Close the cURL session curl_close($session);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uNfEQ
function name:  (null)
number of ops:  53
compiled vars:  !0 = $url, !1 = $session, !2 = $headers, !3 = $applicationID, !4 = $applicationKey, !5 = $response, !6 = $convertedresponse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fauctionlook-dev.azurewebsites.net%2Fapi%2Fauctions%2FKY'
    4     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $8      
          4        ASSIGN                                                   !1, $8
    7     5        INIT_FCALL_BY_NAME                                       'curl_setopt'
          6        SEND_VAR_EX                                              !1
          7        FETCH_CONSTANT                                   ~10     'CURLOPT_RETURNTRANSFER'
          8        SEND_VAL_EX                                              ~10
          9        SEND_VAL_EX                                              <true>
         10        DO_FCALL                                      0          
   11    11        CONCAT                                           ~12     'DecibelAppID%3A+', !3
         12        INIT_ARRAY                                       ~13     ~12
   12    13        CONCAT                                           ~14     'DecibelAppKey%3A+', !4
         14        ADD_ARRAY_ELEMENT                                ~13     ~14
   13    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Ymd+H%3Ai%3As'
         17        INIT_FCALL                                               'time'
         18        DO_ICALL                                         $15     
         19        SEND_VAR                                                 $15
         20        DO_ICALL                                         $16     
         21        CONCAT                                           ~17     'DecibelTimestamp%3A+', $16
         22        ADD_ARRAY_ELEMENT                                ~13     ~17
   10    23        ASSIGN                                                   !2, ~13
   15    24        INIT_FCALL_BY_NAME                                       'curl_setopt'
         25        SEND_VAR_EX                                              !1
         26        FETCH_CONSTANT                                   ~19     'CURLOPT_HTTPHEADER'
         27        SEND_VAL_EX                                              ~19
         28        SEND_VAR_EX                                              !2
         29        DO_FCALL                                      0          
   18    30        INIT_FCALL_BY_NAME                                       'curl_exec'
         31        SEND_VAR_EX                                              !1
         32        DO_FCALL                                      0  $21     
         33        ASSIGN                                                   !5, $21
   20    34        ECHO                                                     !5
   22    35        INIT_FCALL                                               'json_decode'
         36        SEND_VAR                                                 !5
         37        SEND_VAL                                                 <true>
         38        DO_ICALL                                         $23     
         39        ASSIGN                                                   !6, $23
   24    40        ECHO                                                     '---------------------------------------------------------------'
   26    41        INIT_FCALL                                               'print_r'
         42        SEND_VAR                                                 !6
         43        DO_ICALL                                                 
   28    44        ECHO                                                     '%3Cpre%3E'
         45        INIT_FCALL                                               'print_r'
         46        SEND_VAR                                                 !6
         47        DO_ICALL                                                 
         48        ECHO                                                     '%3C%2Fpre%3E'
   32    49        INIT_FCALL_BY_NAME                                       'curl_close'
         50        SEND_VAR_EX                                              !1
         51        DO_FCALL                                      0          
         52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 1400 KiB | 21 Q