3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "<a href='http://demowww.wavebid.com/content/openPdfFile.html?id=7828114'> <img src=\"http://www.wavebid.com/images/icons/pdf-128x128.jpg\" style=\"height: 25px\"/>IPv4_Multicast.pdf</a> <br /> <a href='http://demowww.wavebid.com/content/openPdfFile.html?id=7828115'> <img src=\"http://www.wavebid.com/images/icons/pdf-128x128.jpg\" style=\"height: 25px\"/>IPv6.pdf</a><br />"; $dom = new DOMDocument; $dom->loadHTML($foo); $links = $dom->getElementsByTagName('a'); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7oDba
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $dom, !2 = $links
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ca+href%3D%27http%3A%2F%2Fdemowww.wavebid.com%2Fcontent%2FopenPdfFile.html%3Fid%3D7828114%27%3E%0A%3Cimg+src%3D%22http%3A%2F%2Fwww.wavebid.com%2Fimages%2Ficons%2Fpdf-128x128.jpg%22+style%3D%22height%3A+25px%22%2F%3EIPv4_Multicast.pdf%3C%2Fa%3E%0A%3Cbr+%2F%3E%0A%3Ca+href%3D%27http%3A%2F%2Fdemowww.wavebid.com%2Fcontent%2FopenPdfFile.html%3Fid%3D7828115%27%3E%0A%3Cimg+src%3D%22http%3A%2F%2Fwww.wavebid.com%2Fimages%2Ficons%2Fpdf-128x128.jpg%22+style%3D%22height%3A+25px%22%2F%3EIPv6.pdf%3C%2Fa%3E%3Cbr+%2F%3E'
    8     1        NEW                                              $4      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    9     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   10     7        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
          8        SEND_VAL_EX                                              'a'
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !2, $8
   11    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.81 ms | 1386 KiB | 15 Q