3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = ' <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <loginResponse> <result> <metadataServerUrl> https://na3.salesforce.com/services/Soap/m/28.0/00D50000000IdrE </metadataServerUrl> <passwordExpired>false</passwordExpired> <sandbox>false</sandbox> <serverUrl> https://abc.com/services/Soap/c/28.0/00D50000000IdrE </serverUrl> <sessionId> 00D50000000IdrE!AREAQK4VYXRaHoL_uRvOi.QXXw3ahAt2Cge254wygiW7cr_f6DVa2pDC6g57w5IE fidAu3ZRsJFBN5Bwb6DVhF18zKFiVVyT </sessionId> <userId>00550000001Dd4uAAC</userId> <userInfo> <accessibilityMode>false</accessibilityMode> <currencySymbol>$</currencySymbol> <orgAttachmentFileSizeLimit>5242880 </orgAttachmentFileSizeLimit> <orgDefaultCurrencyIsoCode>USD</orgDefaultCurrencyIsoCode> <orgDisallowHtmlAttachments>false </orgDisallowHtmlAttachments> <orgHasPersonAccounts>false</orgHasPersonAccounts> <organizationId>00D50000000IdrEEAS</organizationId> <organizationMultiCurrency>false</organizationMultiCurrency> <organizationName>3CLogic</organizationName> <profileId>00e500000017al5AAA</profileId> <roleId xsi:nil="true"/> <sessionSecondsValid>7200</sessionSecondsValid> <userDefaultCurrencyIsoCode xsi:nil="true"/> <userEmail>ramana@3clogic.com</userEmail> <userFullName>Ramana</userFullName> <userId>00550Dd4uAAC</userId> <userLanguage>en_US</userLanguage> <userLocale>en_US</userLocale> <userName>raman@gmail.com.com</userName> <userTimeZone>America/New_York</userTimeZone> <userType>Standard</userType> <userUiSkin>Theme3</userUiSkin> </userInfo> </result> </loginResponse> </soapenv:Body> </soapenv:Envelope> '; $sxe = new SimpleXMLElement($xml); // Define some short identifiers for namespaces without relying on their prefix in the XML define('NS_ENV', 'http://schemas.xmlsoap.org/soap/envelope/'); define('NS_SFORCE', 'urn:enterprise.soap.sforce.com'); // $sxe already represents the soapenv:Envelope node, so we don't need to mention that $result = $sxe->children(NS_ENV)->Body->children(NS_SFORCE)->loginResponse->result->serverUrl; echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AX7JN
function name:  (null)
number of ops:  28
compiled vars:  !0 = $xml, !1 = $sxe, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%0A%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Csoapenv%3AEnvelope+xmlns%3Asoapenv%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%0A++++++++++++++++++xmlns%3D%22urn%3Aenterprise.soap.sforce.com%22%0A++++++++++++++++++xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%3E%0A++++%3Csoapenv%3ABody%3E%0A++++++++%3CloginResponse%3E%0A++++++++++++%3Cresult%3E%0A++++++++++++++++%3CmetadataServerUrl%3E%0A++++++++++++++++++++https%3A%2F%2Fna3.salesforce.com%2Fservices%2FSoap%2Fm%2F28.0%2F00D50000000IdrE%0A++++++++++++++++%3C%2FmetadataServerUrl%3E%0A++++++++++++++++%3CpasswordExpired%3Efalse%3C%2FpasswordExpired%3E%0A++++++++++++++++%3Csandbox%3Efalse%3C%2Fsandbox%3E%0A++++++++++++++++%3CserverUrl%3E%0A++++++++++++++++++++https%3A%2F%2Fabc.com%2Fservices%2FSoap%2Fc%2F28.0%2F00D50000000IdrE%0A++++++++++++++++%3C%2FserverUrl%3E%0A++++++++++++++++%3CsessionId%3E%0A++++++++++++++++++++00D50000000IdrE%21AREAQK4VYXRaHoL_uRvOi.QXXw3ahAt2Cge254wygiW7cr_f6DVa2pDC6g57w5IE%0A++++++++++++++++++++fidAu3ZRsJFBN5Bwb6DVhF18zKFiVVyT%0A++++++++++++++++%3C%2FsessionId%3E%0A++++++++++++++++%3CuserId%3E00550000001Dd4uAAC%3C%2FuserId%3E%0A++++++++++++++++%3CuserInfo%3E%0A++++++++++++++++++++%3CaccessibilityMode%3Efalse%3C%2FaccessibilityMode%3E%0A++++++++++++++++++++%3CcurrencySymbol%3E%24%3C%2FcurrencySymbol%3E%0A++++++++++++++++++++%3CorgAttachmentFileSizeLimit%3E5242880%0A++++++++++++++++++++%3C%2ForgAttachmentFileSizeLimit%3E%0A++++++++++++++++++++%3CorgDefaultCurrencyIsoCode%3EUSD%3C%2ForgDefaultCurrencyIsoCode%3E%0A++++++++++++++++++++%3CorgDisallowHtmlAttachments%3Efalse%0A++++++++++++++++++++%3C%2ForgDisallowHtmlAttachments%3E%0A++++++++++++++++++++%3CorgHasPersonAccounts%3Efalse%3C%2ForgHasPersonAccounts%3E%0A++++++++++++++++++++%3CorganizationId%3E00D50000000IdrEEAS%3C%2ForganizationId%3E%0A++++++++++++++++++++%3CorganizationMultiCurrency%3Efalse%3C%2ForganizationMultiCurrency%3E%0A++++++++++++++++++++%3CorganizationName%3E3CLogic%3C%2ForganizationName%3E%0A++++++++++++++++++++%3CprofileId%3E00e500000017al5AAA%3C%2FprofileId%3E%0A++++++++++++++++++++%3CroleId+xsi%3Anil%3D%22true%22%2F%3E%0A++++++++++++++++++++%3CsessionSecondsValid%3E7200%3C%2FsessionSecondsValid%3E%0A++++++++++++++++++++%3CuserDefaultCurrencyIsoCode+xsi%3Anil%3D%22true%22%2F%3E%0A++++++++++++++++++++%3CuserEmail%3Eramana%403clogic.com%3C%2FuserEmail%3E%0A++++++++++++++++++++%3CuserFullName%3ERamana%3C%2FuserFullName%3E%0A++++++++++++++++++++%3CuserId%3E00550Dd4uAAC%3C%2FuserId%3E%0A++++++++++++++++++++%3CuserLanguage%3Een_US%3C%2FuserLanguage%3E%0A++++++++++++++++++++%3CuserLocale%3Een_US%3C%2FuserLocale%3E%0A++++++++++++++++++++%3CuserName%3Eraman%40gmail.com.com%3C%2FuserName%3E%0A++++++++++++++++++++%3CuserTimeZone%3EAmerica%2FNew_York%3C%2FuserTimeZone%3E%0A++++++++++++++++++++%3CuserType%3EStandard%3C%2FuserType%3E%0A++++++++++++++++++++%3CuserUiSkin%3ETheme3%3C%2FuserUiSkin%3E%0A++++++++++++++++%3C%2FuserInfo%3E%0A++++++++++++%3C%2Fresult%3E%0A++++++++%3C%2FloginResponse%3E%0A++++%3C%2Fsoapenv%3ABody%3E%0A%3C%2Fsoapenv%3AEnvelope%3E%0A'
   54     1        NEW                                              $4      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   57     5        INIT_FCALL                                               'define'
          6        SEND_VAL                                                 'NS_ENV'
          7        SEND_VAL                                                 'http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F'
          8        DO_ICALL                                                 
   58     9        INIT_FCALL                                               'define'
         10        SEND_VAL                                                 'NS_SFORCE'
         11        SEND_VAL                                                 'urn%3Aenterprise.soap.sforce.com'
         12        DO_ICALL                                                 
   61    13        INIT_METHOD_CALL                                         !1, 'children'
         14        FETCH_CONSTANT                                   ~9      'NS_ENV'
         15        SEND_VAL_EX                                              ~9
         16        DO_FCALL                                      0  $10     
         17        FETCH_OBJ_R                                      ~11     $10, 'Body'
         18        INIT_METHOD_CALL                                         ~11, 'children'
         19        FETCH_CONSTANT                                   ~12     'NS_SFORCE'
         20        SEND_VAL_EX                                              ~12
         21        DO_FCALL                                      0  $13     
         22        FETCH_OBJ_R                                      ~14     $13, 'loginResponse'
         23        FETCH_OBJ_R                                      ~15     ~14, 'result'
         24        FETCH_OBJ_R                                      ~16     ~15, 'serverUrl'
         25        ASSIGN                                                   !2, ~16
   63    26        ECHO                                                     !2
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.75 ms | 1392 KiB | 15 Q