3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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/32TKE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $xpath, !1 = $document, !2 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $3      'DOMXPath'
          1        SEND_VAR_EX                                              !1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    5     4        INIT_METHOD_CALL                                         !0, 'registerNamespace'
          5        SEND_VAL_EX                                              'sig'
          6        SEND_VAL_EX                                              'http%3A%2F%2Fwww.w3.org%2F2000%2F09%2Fxmldsig%23'
          7        DO_FCALL                                      0          
    6     8        INIT_METHOD_CALL                                         !0, 'query'
          9        SEND_VAL_EX                                              '%2F%2F%2A%5Bnot%28sig%3ASignatureValue%29%5D'
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !2, $7
    7    12        INIT_METHOD_CALL                                         !2, 'item'
         13        SEND_VAL_EX                                              0
         14        DO_FCALL                                      0  $9      
         15        SEPARATE                                         $9      $9
         16        ASSIGN_OBJ                                               $9, 'nodeValue'
         17        OP_DATA                                                  'sig'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.44 ms | 1398 KiB | 13 Q