3v4l.org

run code in 300+ PHP versions simultaneously
<?php say(" hello"); try { $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; say(" xml complete"); $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'); _log("himanshu".$result); } catch(Exception $e) { _log("errorfound".$e->getMessage()); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 28
Branch analysis from position: 28
2 jumps found. (Code = 107) Position 1 = 29, Position 2 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f8UJZ
function name:  (null)
number of ops:  36
compiled vars:  !0 = $xml, !1 = $sxe, !2 = $result, !3 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'say'
          1        SEND_VAL_EX                                              '+hello'
          2        DO_FCALL                                      0          
    5     3        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'
    8     4        INIT_FCALL_BY_NAME                                       'say'
          5        SEND_VAL_EX                                              '+xml+complete'
          6        DO_FCALL                                      0          
    9     7        NEW                                              $7      'SimpleXMLElement'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $7
   11    11        INIT_METHOD_CALL                                         !1, 'registerXPathNamespace'
         12        SEND_VAL_EX                                              'env'
         13        SEND_VAL_EX                                              'http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F'
         14        DO_FCALL                                      0          
   12    15        INIT_METHOD_CALL                                         !1, 'registerXPathNamespace'
         16        SEND_VAL_EX                                              'def'
         17        SEND_VAL_EX                                              'urn%3Aenterprise.soap.sforce.com'
         18        DO_FCALL                                      0          
   13    19        INIT_METHOD_CALL                                         !1, 'xpath'
         20        SEND_VAL_EX                                              '%2Fenv%3AEnvelope%2Fenv%3ABody%2Fdef%3AloginResponse%2Fdef%3Aresult%2Fdef%3AserverUrl'
         21        DO_FCALL                                      0  $12     
         22        ASSIGN                                                   !2, $12
   15    23        INIT_FCALL_BY_NAME                                       '_log'
         24        CONCAT                                           ~14     'himanshu', !2
         25        SEND_VAL_EX                                              ~14
         26        DO_FCALL                                      0          
         27      > JMP                                                      ->35
   17    28  E > > CATCH                                       last         'Exception'
   19    29    >   INIT_FCALL_BY_NAME                                       '_log'
         30        INIT_METHOD_CALL                                         !3, 'getMessage'
         31        DO_FCALL                                      0  $16     
         32        CONCAT                                           ~17     'errorfound', $16
         33        SEND_VAL_EX                                              ~17
         34        DO_FCALL                                      0          
   21    35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.78 ms | 1399 KiB | 13 Q