3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<foo />'; $doc = new DOMDocument(); $doc->loadXML($xml); $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/kSGh4
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $doc, !2 = $node, !3 = $xpath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cfoo+%2F%3E'
    4     1        NEW                                              $5      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $5
    5     4        INIT_METHOD_CALL                                         !1, 'loadXML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    7     7        INIT_METHOD_CALL                                         !3, 'query'
          8        SEND_VAL_EX                                              '%2F%2F%2A%5Bnot%28sig%3ASignatureValue%29%5D'
          9        DO_FCALL                                      0  $9      
         10        ASSIGN                                                   !2, $9
    8    11        INIT_METHOD_CALL                                         !2, 'item'
         12        SEND_VAL_EX                                              0
         13        DO_FCALL                                      0  $11     
         14        SEPARATE                                         $11     $11
         15        ASSIGN_OBJ                                               $11, 'nodeValue'
         16        OP_DATA                                                  'sig'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.1 ms | 1393 KiB | 13 Q