3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:req="http://api-v1.gen.mm.vodafone.com/mminterface/request"> <soapenv:Header/> <soapenv:Body> <req:ResponseMsg> <![CDATA[ <?xml version="1.0" encoding="UTF-8"?><response xmlns="http://api-v1.gen.mm.vodafone.com/mminterface/response"><ResponseCode>100000014</ResponseCode><ResponseDesc>Missing mandatory parameter:OriginatorConversationId</ResponseDesc><ConversationID></ConversationID><OriginatorConversationID></OriginatorConversationID><ServiceStatus>0</ServiceStatus></response>]]> </req:ResponseMsg> </soapenv:Body> </soapenv:Envelope>'; $soap = simplexml_load_string($output); $response = $soap ->children('http://schemas.xmlsoap.org/soap/envelope/') ->Body ->children('http://api-v1.gen.mm.vodafone.com/mminterface/request') ->ResponseMsg; $xml = simplexml_load_string(trim((string) $response)); print_r(json_encode($xml, JSON_PRETTY_PRINT));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iQIAT
function name:  (null)
number of ops:  30
compiled vars:  !0 = $output, !1 = $soap, !2 = $response, !3 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Csoapenv%3AEnvelope+xmlns%3Asoapenv%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22+xmlns%3Areq%3D%22http%3A%2F%2Fapi-v1.gen.mm.vodafone.com%2Fmminterface%2Frequest%22%3E%0A++++++++%3Csoapenv%3AHeader%2F%3E%0A++++++++%3Csoapenv%3ABody%3E%0A++++++++++++%3Creq%3AResponseMsg%3E%0A++++++++++++++++%3C%21%5BCDATA%5B%0A++++++++++++++++%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3Cresponse+xmlns%3D%22http%3A%2F%2Fapi-v1.gen.mm.vodafone.com%2Fmminterface%2Fresponse%22%3E%3CResponseCode%3E100000014%3C%2FResponseCode%3E%3CResponseDesc%3EMissing+mandatory+parameter%3AOriginatorConversationId%3C%2FResponseDesc%3E%3CConversationID%3E%3C%2FConversationID%3E%3COriginatorConversationID%3E%3C%2FOriginatorConversationID%3E%3CServiceStatus%3E0%3C%2FServiceStatus%3E%3C%2Fresponse%3E%5D%5D%3E%0A++++++++++++%3C%2Freq%3AResponseMsg%3E%0A++++++++%3C%2Fsoapenv%3ABody%3E%0A++++%3C%2Fsoapenv%3AEnvelope%3E'
   13     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
   16     5        INIT_METHOD_CALL                                         !1, 'children'
          6        SEND_VAL_EX                                              'http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F'
          7        DO_FCALL                                      0  $7      
   17     8        FETCH_OBJ_R                                      ~8      $7, 'Body'
   18     9        INIT_METHOD_CALL                                         ~8, 'children'
         10        SEND_VAL_EX                                              'http%3A%2F%2Fapi-v1.gen.mm.vodafone.com%2Fmminterface%2Frequest'
         11        DO_FCALL                                      0  $9      
   19    12        FETCH_OBJ_R                                      ~10     $9, 'ResponseMsg'
   15    13        ASSIGN                                                   !2, ~10
   21    14        INIT_FCALL                                               'simplexml_load_string'
         15        INIT_FCALL                                               'trim'
         16        CAST                                          6  ~12     !2
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                         $13     
         19        SEND_VAR                                                 $13
         20        DO_ICALL                                         $14     
         21        ASSIGN                                                   !3, $14
   23    22        INIT_FCALL                                               'print_r'
         23        INIT_FCALL                                               'json_encode'
         24        SEND_VAR                                                 !3
         25        SEND_VAL                                                 128
         26        DO_ICALL                                         $16     
         27        SEND_VAR                                                 $16
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.44 ms | 1071 KiB | 17 Q