3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<a title="foobar" href="/php/parse-robots/" target="_parent">setting a user agent and parsing robots.txt</a>'; $doc = DOMDocument::loadHtml($string); var_dump($doc);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1OMAf
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string, !1 = $doc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ca+title%3D%22foobar%22+href%3D%22%2Fphp%2Fparse-robots%2F%22+target%3D%22_parent%22%3Esetting+a+user+agent+and+parsing+robots.txt%3C%2Fa%3E'
    5     1        INIT_STATIC_METHOD_CALL                                  'DOMDocument', 'loadHtml'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
    7     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.36 ms | 939 KiB | 16 Q