3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<foo />'; $doc = new DOMDocument(); $doc->loadXML($xml); $xpath = new DOMXPath($document); $xpath->registerNamespace('sig', 'http://www.w3.org/2000/09/xmldsig#'); $node = $xpath->query('//*[not(sig:SignatureValue)]'); $node->item(0)->nodeValue = 'sig';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JaGaD
function name:  (null)
number of ops:  26
compiled vars:  !0 = $xml, !1 = $doc, !2 = $xpath, !3 = $document, !4 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cfoo+%2F%3E'
    4     1        NEW                                              $6      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $6
    5     4        INIT_METHOD_CALL                                         !1, 'loadXML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    7     7        NEW                                              $10     'DOMXPath'
          8        SEND_VAR_EX                                              !3
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $10
    8    11        INIT_METHOD_CALL                                         !2, 'registerNamespace'
         12        SEND_VAL_EX                                              'sig'
         13        SEND_VAL_EX                                              'http%3A%2F%2Fwww.w3.org%2F2000%2F09%2Fxmldsig%23'
         14        DO_FCALL                                      0          
    9    15        INIT_METHOD_CALL                                         !2, 'query'
         16        SEND_VAL_EX                                              '%2F%2F%2A%5Bnot%28sig%3ASignatureValue%29%5D'
         17        DO_FCALL                                      0  $14     
         18        ASSIGN                                                   !4, $14
   10    19        INIT_METHOD_CALL                                         !4, 'item'
         20        SEND_VAL_EX                                              0
         21        DO_FCALL                                      0  $16     
         22        SEPARATE                                         $16     $16
         23        ASSIGN_OBJ                                               $16, 'nodeValue'
         24        OP_DATA                                                  'sig'
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.68 ms | 1394 KiB | 13 Q