3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rels= new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet2.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>'); $rels->registerXPathNamespace('http://schemas.openxmlformats.org/package/2006/relationships','r'); echo $this->WorkbookRels->xpath('/r:Relationships/r:Relationship/Type@[@id='. addslashes($Value) .']');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8nkcN
function name:  (null)
number of ops:  20
compiled vars:  !0 = $rels, !1 = $Value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22%3F%3E%0A%3CRelationships+xmlns%3D%22http%3A%2F%2Fschemas.openxmlformats.org%2Fpackage%2F2006%2Frelationships%22%3E%3CRelationship+Id%3D%22rId3%22+Type%3D%22http%3A%2F%2Fschemas.openxmlformats.org%2FofficeDocument%2F2006%2Frelationships%2Ftheme%22+Target%3D%22theme%2Ftheme1.xml%22%2F%3E%3CRelationship+Id%3D%22rId2%22+Type%3D%22http%3A%2F%2Fschemas.openxmlformats.org%2FofficeDocument%2F2006%2Frelationships%2Fworksheet%22+Target%3D%22worksheets%2Fsheet2.xml%22%2F%3E%3CRelationship+Id%3D%22rId1%22+Type%3D%22http%3A%2F%2Fschemas.openxmlformats.org%2FofficeDocument%2F2006%2Frelationships%2Fworksheet%22+Target%3D%22worksheets%2Fsheet1.xml%22%2F%3E%3CRelationship+Id%3D%22rId5%22+Type%3D%22http%3A%2F%2Fschemas.openxmlformats.org%2FofficeDocument%2F2006%2Frelationships%2FsharedStrings%22+Target%3D%22sharedStrings.xml%22%2F%3E%3CRelationship+Id%3D%22rId4%22+Type%3D%22http%3A%2F%2Fschemas.openxmlformats.org%2FofficeDocument%2F2006%2Frelationships%2Fstyles%22+Target%3D%22styles.xml%22%2F%3E%3C%2FRelationships%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    6     4        INIT_METHOD_CALL                                         !0, 'registerXPathNamespace'
          5        SEND_VAL_EX                                              'http%3A%2F%2Fschemas.openxmlformats.org%2Fpackage%2F2006%2Frelationships'
          6        SEND_VAL_EX                                              'r'
          7        DO_FCALL                                      0          
    7     8        FETCH_THIS                                       $6      
          9        FETCH_OBJ_R                                      ~7      $6, 'WorkbookRels'
         10        INIT_METHOD_CALL                                         ~7, 'xpath'
         11        INIT_FCALL                                               'addslashes'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        CONCAT                                           ~9      '%2Fr%3ARelationships%2Fr%3ARelationship%2FType%40%5B%40id%3D', $8
         15        CONCAT                                           ~10     ~9, '%5D'
         16        SEND_VAL_EX                                              ~10
         17        DO_FCALL                                      0  $11     
         18        ECHO                                                     $11
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176 ms | 1396 KiB | 15 Q