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://abc.wyz.com/services/Soap/m/28.0/00D50000000IdrE </metadataServerUrl><passwordExpired>false</passwordExpired><sandbox>false</sandbox><serverUrl>https://abc.wyz.com/services/Soap/c/28.0/00D50000000IdrE </serverUrl><sessionId>00D50000000IdrE!AREAQK4VYXRaXw3ahAt2Cge254wygiW7cr_f6DVa2pDC6g57w5IEfidAu3ZRsJFBN5Bwb6DVhF18zKFiVVyT</sessionId><userId>005500AAC</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>ABC</organizationName><profileId>00e500000017al5AAA</profileId><roleId xsi:nil=\”true\”/><sessionSecondsValid>7200</sessionSecondsValid><userDefaultCurrencyIsoCode xsi:nil=\”true\”/><userEmail>ramana@3clogic.com</userEmail><userFullName>hemanonearth</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'); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9AAj8
function name:  (null)
number of ops:  21
compiled vars:  !0 = $xml, !1 = $sxe, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+%3C%3Fxml+version%3D%5C%E2%80%9D1.0%5C%E2%80%9D+encoding%3D%5C%E2%80%9DUTF-8%5C%E2%80%9D%3F%3E%3Csoapenv%3AEnvelope++++xmlns%3Asoapenv%3D%5C%E2%80%9Dhttp%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%E2%80%9D+%0A+xmlns%3D%5C%E2%80%9Durn%3Aenterprise.soap.sforce.com%5C%E2%80%9D+xmlns%3Axsi%3D%5C%E2%80%9Dhttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%5C%E2%80%9D%3E%3Csoapenv%3ABody%3E%3CloginResponse%3E%3Cresult%3E%3CmetadataServerUrl%3Ehttps%3A%2F%2Fabc.wyz.com%2Fservices%2FSoap%2Fm%2F28.0%2F00D50000000IdrE%0A+%3C%2FmetadataServerUrl%3E%3CpasswordExpired%3Efalse%3C%2FpasswordExpired%3E%3Csandbox%3Efalse%3C%2Fsandbox%3E%3CserverUrl%3Ehttps%3A%2F%2Fabc.wyz.com%2Fservices%2FSoap%2Fc%2F28.0%2F00D50000000IdrE%0A+%3C%2FserverUrl%3E%3CsessionId%3E00D50000000IdrE%21AREAQK4VYXRaXw3ahAt2Cge254wygiW7cr_f6DVa2pDC6g57w5IEfidAu3ZRsJFBN5Bwb6DVhF18zKFiVVyT%3C%2FsessionId%3E%3CuserId%3E005500AAC%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%3EABC%3C%2ForganizationName%3E%3CprofileId%3E00e500000017al5AAA%3C%2FprofileId%3E%3CroleId+xsi%3Anil%3D%5C%E2%80%9Dtrue%5C%E2%80%9D%2F%3E%3CsessionSecondsValid%3E7200%3C%2FsessionSecondsValid%3E%3CuserDefaultCurrencyIsoCode+xsi%3Anil%3D%5C%E2%80%9Dtrue%5C%E2%80%9D%2F%3E%3CuserEmail%3Eramana%403clogic.com%3C%2FuserEmail%3E%3CuserFullName%3Ehemanonearth%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'
   10     1        NEW                                              $4      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   11     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          
   12     9        INIT_METHOD_CALL                                         !1, 'registerXPathNamespace'
         10        SEND_VAL_EX                                              'def'
         11        SEND_VAL_EX                                              'urn%3Aenterprise.soap.sforce.com'
         12        DO_FCALL                                      0          
   13    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
   15    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.02 ms | 1392 KiB | 15 Q