3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOD <?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://na3.salesforce.com/services/Soap/c/28.0/00D50000000IdrE</serverUrl><sessionId>00D50000000IdrE!AREAQK4VYXRaHoL_uRvOi.QXXw3ahAt2Cge254wygiW7cr_f6DVa2pDC6g57w5IEfidAu3ZRsJFBN5Bwb6DVhF18zKFiVVyT</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 Reddy</userFullName><userId>00550000001Dd4uAAC</userId><userLanguage>en_US</userLanguage><userLocale>en_US</userLocale><userName>ramana@3clogic.com</userName><userTimeZone>America/New_York</userTimeZone><userType>Standard</userType><userUiSkin>Theme3</userUiSkin></userInfo></result></loginResponse></soapenv:Body></soapenv:Envelope> EOD; $sxe = new SimpleXMLElement($xml); $sxe->registerXPathNamespace('env', 'http://schemas.xmlsoap.org/soap/envelope/'); $sxe->registerXPathNamespace('def', 'urn:enterprise.soap.sforce.com'); $result = $sxe->xpath('/env:Envelope/env:Body/def:loginResponse/def:result/def:serverUrl'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SikNT
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $sxe, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3Csoapenv%3AEnvelope+xmlns%3Asoapenv%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22+xmlns%3D%22urn%3Aenterprise.soap.sforce.com%22+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%3E%3Csoapenv%3ABody%3E%3CloginResponse%3E%3Cresult%3E%3CmetadataServerUrl%3Ehttps%3A%2F%2Fna3.salesforce.com%2Fservices%2FSoap%2Fm%2F28.0%2F00D50000000IdrE%3C%2FmetadataServerUrl%3E%3CpasswordExpired%3Efalse%3C%2FpasswordExpired%3E%3Csandbox%3Efalse%3C%2Fsandbox%3E%3CserverUrl%3Ehttps%3A%2F%2Fna3.salesforce.com%2Fservices%2FSoap%2Fc%2F28.0%2F00D50000000IdrE%3C%2FserverUrl%3E%3CsessionId%3E00D50000000IdrE%21AREAQK4VYXRaHoL_uRvOi.QXXw3ahAt2Cge254wygiW7cr_f6DVa2pDC6g57w5IEfidAu3ZRsJFBN5Bwb6DVhF18zKFiVVyT%3C%2FsessionId%3E%3CuserId%3E00550000001Dd4uAAC%3C%2FuserId%3E%3CuserInfo%3E%3CaccessibilityMode%3Efalse%3C%2FaccessibilityMode%3E%3CcurrencySymbol%3E%24%3C%2FcurrencySymbol%3E%3CorgAttachmentFileSizeLimit%3E5242880%3C%2ForgAttachmentFileSizeLimit%3E%3CorgDefaultCurrencyIsoCode%3EUSD%3C%2ForgDefaultCurrencyIsoCode%3E%3CorgDisallowHtmlAttachments%3Efalse%3C%2ForgDisallowHtmlAttachments%3E%3CorgHasPersonAccounts%3Efalse%3C%2ForgHasPersonAccounts%3E%3CorganizationId%3E00D50000000IdrEEAS%3C%2ForganizationId%3E%3CorganizationMultiCurrency%3Efalse%3C%2ForganizationMultiCurrency%3E%3CorganizationName%3E3CLogic%3C%2ForganizationName%3E%3CprofileId%3E00e500000017al5AAA%3C%2FprofileId%3E%3CroleId+xsi%3Anil%3D%22true%22%2F%3E%3CsessionSecondsValid%3E7200%3C%2FsessionSecondsValid%3E%3CuserDefaultCurrencyIsoCode+xsi%3Anil%3D%22true%22%2F%3E%3CuserEmail%3Eramana%403clogic.com%3C%2FuserEmail%3E%3CuserFullName%3ERamana+Reddy%3C%2FuserFullName%3E%3CuserId%3E00550000001Dd4uAAC%3C%2FuserId%3E%3CuserLanguage%3Een_US%3C%2FuserLanguage%3E%3CuserLocale%3Een_US%3C%2FuserLocale%3E%3CuserName%3Eramana%403clogic.com%3C%2FuserName%3E%3CuserTimeZone%3EAmerica%2FNew_York%3C%2FuserTimeZone%3E%3CuserType%3EStandard%3C%2FuserType%3E%3CuserUiSkin%3ETheme3%3C%2FuserUiSkin%3E%3C%2FuserInfo%3E%3C%2Fresult%3E%3C%2FloginResponse%3E%3C%2Fsoapenv%3ABody%3E%3C%2Fsoapenv%3AEnvelope%3E'
    5     1        NEW                                              $4      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
    6     5        INIT_METHOD_CALL                                         !1, 'registerXPathNamespace'
          6        SEND_VAL_EX                                              'env'
          7        SEND_VAL_EX                                              'http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F'
          8        DO_FCALL                                      0          
    7     9        INIT_METHOD_CALL                                         !1, 'registerXPathNamespace'
         10        SEND_VAL_EX                                              'def'
         11        SEND_VAL_EX                                              'urn%3Aenterprise.soap.sforce.com'
         12        DO_FCALL                                      0          
    8    13        INIT_METHOD_CALL                                         !1, 'xpath'
         14        SEND_VAL_EX                                              '%2Fenv%3AEnvelope%2Fenv%3ABody%2Fdef%3AloginResponse%2Fdef%3Aresult%2Fdef%3AserverUrl'
         15        DO_FCALL                                      0  $9      
         16        ASSIGN                                                   !2, $9
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.45 ms | 1399 KiB | 13 Q