3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $xpath = new DOMXpath($dom); if (!isset($xpath->document)) { $xpath->document = $dom; } var_dump($xpath->document);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/dL7ZA
function name:  (null)
number of ops:  17
compiled vars:  !0 = $dom, !1 = $xpath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        NEW                                              $5      'DOMXpath'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
    5     7        ISSET_ISEMPTY_PROP_OBJ                           ~8      !1, 'document'
          8        BOOL_NOT                                         ~9      ~8
          9      > JMPZ                                                     ~9, ->12
    6    10    >   ASSIGN_OBJ                                               !1, 'document'
         11        OP_DATA                                                  !0
    9    12    >   INIT_FCALL                                               'var_dump'
         13        FETCH_OBJ_R                                      ~11     !1, 'document'
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.18 ms | 1394 KiB | 15 Q