3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aHTTP['http']['header'] = "User-Agent: PHP-SOAP/5.5.11\r\n"; $aHTTP['http']['header'].= "username: 20127765279MODDATOS\r\n"."password: moddatos\r\n"; $context = stream_context_create($aHTTP); $client=new SoapClient("https://www.sunat.gob.pe:443/ol-ti-itcpgem-beta/billService?WSDL", array('trace' => 1,"stream_context" => $context)); $result = $client->__getFunctions(); var_dump($result); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kv4RM
function name:  (null)
number of ops:  24
compiled vars:  !0 = $aHTTP, !1 = $context, !2 = $client, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $4      !0, 'http'
          1        ASSIGN_DIM                                               $4, 'header'
          2        OP_DATA                                                  'User-Agent%3A+PHP-SOAP%2F5.5.11%0D%0A'
    5     3        FETCH_DIM_RW                                     $6      !0, 'http'
          4        ASSIGN_DIM_OP                .=               8          $6, 'header'
          5        OP_DATA                                                  'username%3A+20127765279MODDATOS%0D%0Apassword%3A+moddatos%0D%0A'
    7     6        INIT_FCALL                                               'stream_context_create'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !1, $8
    9    10        NEW                                              $10     'SoapClient'
         11        SEND_VAL_EX                                              'https%3A%2F%2Fwww.sunat.gob.pe%3A443%2Fol-ti-itcpgem-beta%2FbillService%3FWSDL'
   10    12        INIT_ARRAY                                       ~11     1, 'trace'
         13        ADD_ARRAY_ELEMENT                                ~11     !1, 'stream_context'
         14        SEND_VAL_EX                                              ~11
         15        DO_FCALL                                      0          
    9    16        ASSIGN                                                   !2, $10
   12    17        INIT_METHOD_CALL                                         !2, '__getFunctions'
         18        DO_FCALL                                      0  $14     
         19        ASSIGN                                                   !3, $14
   13    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                                 
   14    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.22 ms | 1395 KiB | 17 Q