3v4l.org

run code in 300+ PHP versions simultaneously
<?php say(" hello"); try { $xml = <<<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://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> XML; say(" xml complete"); $sxe = new SimpleXMlElement($xml); $sxe->registerXPathNamespace('soap', 'http://schemas.xmlsoap.org/soap/envelope/'); $path = $sxe->xpath('//soap:Body'); $path = $path[0] ; foreach($path->getlocationsresponse->getlocationsresult->SearchLocations->children() as $table) { _log("ajay ". $table->sessionId . "<br>"); } } catch(Exception $e) { _log("errorfound".$e->getMessage()); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 27, Position 2 = 35
Branch analysis from position: 27
2 jumps found. (Code = 78) Position 1 = 28, Position 2 = 35
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
Found catch point at position: 37
Branch analysis from position: 37
2 jumps found. (Code = 107) Position 1 = 38, Position 2 = -2
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K6QtX
function name:  (null)
number of ops:  45
compiled vars:  !0 = $xml, !1 = $sxe, !2 = $path, !3 = $table, !4 = $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                                              $8      'SimpleXMlElement'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $8
   10    11        INIT_METHOD_CALL                                         !1, 'registerXPathNamespace'
         12        SEND_VAL_EX                                              'soap'
         13        SEND_VAL_EX                                              'http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F'
         14        DO_FCALL                                      0          
   11    15        INIT_METHOD_CALL                                         !1, 'xpath'
         16        SEND_VAL_EX                                              '%2F%2Fsoap%3ABody'
         17        DO_FCALL                                      0  $12     
         18        ASSIGN                                                   !2, $12
   12    19        FETCH_DIM_R                                      ~14     !2, 0
         20        ASSIGN                                                   !2, ~14
   13    21        FETCH_OBJ_R                                      ~16     !2, 'getlocationsresponse'
         22        FETCH_OBJ_R                                      ~17     ~16, 'getlocationsresult'
         23        FETCH_OBJ_R                                      ~18     ~17, 'SearchLocations'
         24        INIT_METHOD_CALL                                         ~18, 'children'
         25        DO_FCALL                                      0  $19     
         26      > FE_RESET_R                                       $20     $19, ->35
         27    > > FE_FETCH_R                                               $20, !3, ->35
   15    28    >   INIT_FCALL_BY_NAME                                       '_log'
         29        FETCH_OBJ_R                                      ~21     !3, 'sessionId'
         30        CONCAT                                           ~22     'ajay+', ~21
         31        CONCAT                                           ~23     ~22, '%3Cbr%3E'
         32        SEND_VAL_EX                                              ~23
         33        DO_FCALL                                      0          
   13    34      > JMP                                                      ->27
         35    >   FE_FREE                                                  $20
         36      > JMP                                                      ->44
   18    37  E > > CATCH                                       last         'Exception'
   20    38    >   INIT_FCALL_BY_NAME                                       '_log'
         39        INIT_METHOD_CALL                                         !4, 'getMessage'
         40        DO_FCALL                                      0  $25     
         41        CONCAT                                           ~26     'errorfound', $25
         42        SEND_VAL_EX                                              ~26
         43        DO_FCALL                                      0          
   22    44    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.13 ms | 1399 KiB | 13 Q