3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html ="<div align=center><object><embed src='http://www.GamesForWork.com/games/swf/Rodent Tree Jump january 4th 2007.swf' quality='autohigh' wmode='direct' width='640' height='400' name='gameObj' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer'/></object><br><font face=verdana size=1><a href='http://www.gamesforwork.com/' target='_blank'>10 daily games at gamesforwork.com</a></font></div> "; //Create a new DOM document $dom = new DOMDocument; //Parse the HTML. The @ is used to suppress any parsing errors //that will be thrown if the $html string isn't valid XHTML. @$dom->loadHTML($html); //Get all links. You could also use any other tag name here, //like 'img' or 'table', to extract other tags. $links = $dom->getElementsByTagName('a'); //Iterate over the extracted links and display their URLs foreach ($links as $link){ //Extract and show the "href" attribute. echo $link->nodeValue; echo $link->getAttribute('href'), '<br>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 23
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/YPHA2
function name:  (null)
number of ops:  25
compiled vars:  !0 = $html, !1 = $dom, !2 = $links, !3 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv+align%3Dcenter%3E%3Cobject%3E%3Cembed+src%3D%27http%3A%2F%2Fwww.GamesForWork.com%2Fgames%2Fswf%2FRodent+Tree+Jump+january+4th+2007.swf%27+quality%3D%27autohigh%27+wmode%3D%27direct%27+width%3D%27640%27+height%3D%27400%27+name%3D%27gameObj%27+align%3D%27middle%27+allowScriptAccess%3D%27always%27+allowFullScreen%3D%27false%27+type%3D%27application%2Fx-shockwave-flash%27+pluginspage%3D%27http%3A%2F%2Fwww.adobe.com%2Fgo%2Fgetflashplayer%27%2F%3E%3C%2Fobject%3E%3Cbr%3E%3Cfont+face%3Dverdana+size%3D1%3E%3Ca+href%3D%27http%3A%2F%2Fwww.gamesforwork.com%2F%27+target%3D%27_blank%27%3E10+daily+games+at+gamesforwork.com%3C%2Fa%3E%3C%2Ffont%3E%3C%2Fdiv%3E%0A'
    8     1        NEW                                              $5      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $5
   12     4        BEGIN_SILENCE                                    ~8      
          5        INIT_METHOD_CALL                                         !1, 'loadHTML'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        END_SILENCE                                              ~8
   16     9        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
         10        SEND_VAL_EX                                              'a'
         11        DO_FCALL                                      0  $10     
         12        ASSIGN                                                   !2, $10
   19    13      > FE_RESET_R                                       $12     !2, ->23
         14    > > FE_FETCH_R                                               $12, !3, ->23
   21    15    >   FETCH_OBJ_R                                      ~13     !3, 'nodeValue'
         16        ECHO                                                     ~13
   22    17        INIT_METHOD_CALL                                         !3, 'getAttribute'
         18        SEND_VAL_EX                                              'href'
         19        DO_FCALL                                      0  $14     
         20        ECHO                                                     $14
         21        ECHO                                                     '%3Cbr%3E'
   19    22      > JMP                                                      ->14
         23    >   FE_FREE                                                  $12
   23    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.79 ms | 1386 KiB | 13 Q