3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://php.net/dom"; libxml_use_internal_errors(true); $dom = new DOMDocument(); $dom->loadHTML($url); $nodes = $dom->getElementsByTagName("A"); foreach($nodes as $node) { var_dump($node); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/Avdlq
function name:  (null)
number of ops:  22
compiled vars:  !0 = $url, !1 = $dom, !2 = $nodes, !3 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fphp.net%2Fdom'
    3     1        INIT_FCALL                                               'libxml_use_internal_errors'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    4     4        NEW                                              $6      'DOMDocument'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
    5     7        INIT_METHOD_CALL                                         !1, 'loadHTML'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    6    10        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
         11        SEND_VAL_EX                                              'A'
         12        DO_FCALL                                      0  $10     
         13        ASSIGN                                                   !2, $10
    7    14      > FE_RESET_R                                       $12     !2, ->20
         15    > > FE_FETCH_R                                               $12, !3, ->20
    9    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                                 
    7    19      > JMP                                                      ->15
         20    >   FE_FREE                                                  $12
   10    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.28 ms | 1395 KiB | 17 Q