3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url="https://www.archifact.nl/ws_dddn/DDDN_soap12.asp"; $post_string = '<?xml version="1.0" encoding="UTF-8"?> <rootNode> <innerNode> </innerNode> </rootNode>'; $header = "POST HTTP/1.0 \r\n"; $header .= "Content-type: text/xml \r\n"; $header .= "Content-length: ".strlen($post_string)." \r\n"; $header .= "Content-transfer-encoding: text \r\n"; $header .= "Connection: close \r\n\r\n"; $header .= $post_string; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 4); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $header); $data = curl_exec($ch); print $data; if(curl_errno($ch)) print curl_error($ch); else curl_close($ch); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 53, Position 2 = 58
Branch analysis from position: 53
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CcGHk
function name:  (null)
number of ops:  62
compiled vars:  !0 = $url, !1 = $post_string, !2 = $header, !3 = $ch, !4 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fwww.archifact.nl%2Fws_dddn%2FDDDN_soap12.asp'
    5     1        ASSIGN                                                   !1, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3CrootNode%3E%0A++++%3CinnerNode%3E%0A++++%3C%2FinnerNode%3E%0A%3C%2FrootNode%3E'
   12     2        ASSIGN                                                   !2, 'POST+HTTP%2F1.0+%0D%0A'
   13     3        ASSIGN_OP                                     8          !2, 'Content-type%3A+text%2Fxml+%0D%0A'
   14     4        STRLEN                                           ~9      !1
          5        CONCAT                                           ~10     'Content-length%3A+', ~9
          6        CONCAT                                           ~11     ~10, '+%0D%0A'
          7        ASSIGN_OP                                     8          !2, ~11
   15     8        ASSIGN_OP                                     8          !2, 'Content-transfer-encoding%3A+text+%0D%0A'
   16     9        ASSIGN_OP                                     8          !2, 'Connection%3A+close+%0D%0A%0D%0A'
   17    10        ASSIGN_OP                                     8          !2, !1
   19    11        INIT_FCALL_BY_NAME                                       'curl_init'
         12        DO_FCALL                                      0  $16     
         13        ASSIGN                                                   !3, $16
   20    14        INIT_FCALL_BY_NAME                                       'curl_setopt'
         15        SEND_VAR_EX                                              !3
         16        FETCH_CONSTANT                                   ~18     'CURLOPT_SSL_VERIFYPEER'
         17        SEND_VAL_EX                                              ~18
         18        SEND_VAL_EX                                              0
         19        DO_FCALL                                      0          
   21    20        INIT_FCALL_BY_NAME                                       'curl_setopt'
         21        SEND_VAR_EX                                              !3
         22        FETCH_CONSTANT                                   ~20     'CURLOPT_URL'
         23        SEND_VAL_EX                                              ~20
         24        SEND_VAR_EX                                              !0
         25        DO_FCALL                                      0          
   22    26        INIT_FCALL_BY_NAME                                       'curl_setopt'
         27        SEND_VAR_EX                                              !3
         28        FETCH_CONSTANT                                   ~22     'CURLOPT_RETURNTRANSFER'
         29        SEND_VAL_EX                                              ~22
         30        SEND_VAL_EX                                              1
         31        DO_FCALL                                      0          
   23    32        INIT_FCALL_BY_NAME                                       'curl_setopt'
         33        SEND_VAR_EX                                              !3
         34        FETCH_CONSTANT                                   ~24     'CURLOPT_TIMEOUT'
         35        SEND_VAL_EX                                              ~24
         36        SEND_VAL_EX                                              4
         37        DO_FCALL                                      0          
   24    38        INIT_FCALL_BY_NAME                                       'curl_setopt'
         39        SEND_VAR_EX                                              !3
         40        FETCH_CONSTANT                                   ~26     'CURLOPT_CUSTOMREQUEST'
         41        SEND_VAL_EX                                              ~26
         42        SEND_VAR_EX                                              !2
         43        DO_FCALL                                      0          
   26    44        INIT_FCALL_BY_NAME                                       'curl_exec'
         45        SEND_VAR_EX                                              !3
         46        DO_FCALL                                      0  $28     
         47        ASSIGN                                                   !4, $28
   27    48        ECHO                                                     !4
   28    49        INIT_FCALL_BY_NAME                                       'curl_errno'
         50        SEND_VAR_EX                                              !3
         51        DO_FCALL                                      0  $30     
         52      > JMPZ                                                     $30, ->58
   29    53    >   INIT_FCALL_BY_NAME                                       'curl_error'
         54        SEND_VAR_EX                                              !3
         55        DO_FCALL                                      0  $31     
         56        ECHO                                                     $31
         57      > JMP                                                      ->61
   31    58    >   INIT_FCALL_BY_NAME                                       'curl_close'
         59        SEND_VAR_EX                                              !3
         60        DO_FCALL                                      0          
   33    61    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.86 ms | 1399 KiB | 13 Q