3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument; $doc->loadHTMLFile( 'http://www.wealth.anz.com/insurance'); $xpath = new DOMXpath( $doc); foreach( $xpath->query( '/div[@id="subnav"]/ul/li') as $li) { echo $li->nodeName . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/IsB0b
function name:  (null)
number of ops:  21
compiled vars:  !0 = $doc, !1 = $xpath, !2 = $li
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        INIT_METHOD_CALL                                         !0, 'loadHTMLFile'
          4        SEND_VAL_EX                                              'http%3A%2F%2Fwww.wealth.anz.com%2Finsurance'
          5        DO_FCALL                                      0          
    6     6        NEW                                              $7      'DOMXpath'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $7
    7    10        INIT_METHOD_CALL                                         !1, 'query'
         11        SEND_VAL_EX                                              '%2Fdiv%5B%40id%3D%22subnav%22%5D%2Ful%2Fli'
         12        DO_FCALL                                      0  $10     
         13      > FE_RESET_R                                       $11     $10, ->19
         14    > > FE_FETCH_R                                               $11, !2, ->19
    8    15    >   FETCH_OBJ_R                                      ~12     !2, 'nodeName'
         16        CONCAT                                           ~13     ~12, '%0A'
         17        ECHO                                                     ~13
    7    18      > JMP                                                      ->14
         19    >   FE_FREE                                                  $11
    9    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.74 ms | 1398 KiB | 13 Q