3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ''; $dd1 = new DOMDocument(); $q = "//saved-copy-url/text()"; $xpath = new DOMXPath($this->doc); $nodes = $xpath->query($q); $list = array(); foreach($nodes as $node) { $list[] = trim($node->textContent); } var_dump($list);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 26
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/Hclo5
function name:  (null)
number of ops:  31
compiled vars:  !0 = $str, !1 = $dd1, !2 = $q, !3 = $xpath, !4 = $nodes, !5 = $list, !6 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    5     1        NEW                                              $8      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $8
    6     4        ASSIGN                                                   !2, '%2F%2Fsaved-copy-url%2Ftext%28%29'
    8     5        NEW                                              $12     'DOMXPath'
          6        CHECK_FUNC_ARG                                           
          7        FETCH_THIS                                       $13     
          8        FETCH_OBJ_FUNC_ARG                               $14     $13, 'doc'
          9        SEND_FUNC_ARG                                            $14
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !3, $12
    9    12        INIT_METHOD_CALL                                         !3, 'query'
         13        SEND_VAR_EX                                              !2
         14        DO_FCALL                                      0  $17     
         15        ASSIGN                                                   !4, $17
   11    16        ASSIGN                                                   !5, <array>
   12    17      > FE_RESET_R                                       $20     !4, ->26
         18    > > FE_FETCH_R                                               $20, !6, ->26
   13    19    >   INIT_FCALL                                               'trim'
         20        FETCH_OBJ_R                                      ~22     !6, 'textContent'
         21        SEND_VAL                                                 ~22
         22        DO_ICALL                                         $23     
         23        ASSIGN_DIM                                               !5
         24        OP_DATA                                                  $23
   12    25      > JMP                                                      ->18
         26    >   FE_FREE                                                  $20
   16    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !5
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.7 ms | 1396 KiB | 17 Q