3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DOMDocument(); $d->loadHTML('<u>word</u> <u>main</u>'); $us = $d->getElementsByTagName('u'); foreach ($us as $u) { echo $u->nodeValue . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/nSBq6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $d, !1 = $us, !2 = $u
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, 'loadHTML'
          4        SEND_VAL_EX                                              '%3Cu%3Eword%3C%2Fu%3E%0A%3Cu%3Emain%3C%2Fu%3E'
          5        DO_FCALL                                      0          
    6     6        INIT_METHOD_CALL                                         !0, 'getElementsByTagName'
          7        SEND_VAL_EX                                              'u'
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
    7    10      > FE_RESET_R                                       $9      !1, ->16
         11    > > FE_FETCH_R                                               $9, !2, ->16
    8    12    >   FETCH_OBJ_R                                      ~10     !2, 'nodeValue'
         13        CONCAT                                           ~11     ~10, '%0A'
         14        ECHO                                                     ~11
    7    15      > JMP                                                      ->11
         16    >   FE_FREE                                                  $9
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
292.7 ms | 1007 KiB | 13 Q