3v4l.org

run code in 300+ PHP versions simultaneously
<?php $remote_links = "http://es.ninemanga.com/chapter/LALEYENDADEASURAPRLOGONovelaCaptulo1/649751/ http://es.ninemanga.com/chapter/UglyDucklingCaptulo5/649745/"; $content_arr = preg_split("/\n/",$remote_links); $length = count($remote_links); for($j=0;$j<count($remote_links);$j++){ $html = file_get_contents($remote_links[$j], false, $context); //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>'; // var_dump ($html); // $html = str_replace('<br />', ',', $html).PHP_EOL; //echo $html.PHP_EOL; //print_r(htmlentities($content).'<br>'); } // print $content_arr[$i].PHP_EOL; //print $title.PHP_EOL; //print $title_no.PHP_EOL; //print $TITLE_master.PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 10
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 30, Position 2 = 37
Branch analysis from position: 30
2 jumps found. (Code = 78) Position 1 = 31, Position 2 = 37
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 10
Branch analysis from position: 42
Branch analysis from position: 10
Branch analysis from position: 37
filename:       /in/hgpho
function name:  (null)
number of ops:  43
compiled vars:  !0 = $remote_links, !1 = $content_arr, !2 = $length, !3 = $j, !4 = $html, !5 = $context, !6 = $dom, !7 = $links, !8 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fes.ninemanga.com%2Fchapter%2FLALEYENDADEASURAPRLOGONovelaCaptulo1%2F649751%2F%0Ahttp%3A%2F%2Fes.ninemanga.com%2Fchapter%2FUglyDucklingCaptulo5%2F649745%2F'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%0A%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $10     
          5        ASSIGN                                                   !1, $10
    7     6        COUNT                                            ~12     !0
          7        ASSIGN                                                   !2, ~12
    8     8        ASSIGN                                                   !3, 0
          9      > JMP                                                      ->39
    9    10    >   INIT_FCALL                                               'file_get_contents'
         11        FETCH_DIM_R                                      ~15     !0, !3
         12        SEND_VAL                                                 ~15
         13        SEND_VAL                                                 <false>
         14        SEND_VAR                                                 !5
         15        DO_ICALL                                         $16     
         16        ASSIGN                                                   !4, $16
   11    17        NEW                                              $18     'DOMDocument'
         18        DO_FCALL                                      0          
         19        ASSIGN                                                   !6, $18
   15    20        BEGIN_SILENCE                                    ~21     
         21        INIT_METHOD_CALL                                         !6, 'loadHTML'
         22        SEND_VAR_EX                                              !4
         23        DO_FCALL                                      0          
         24        END_SILENCE                                              ~21
   19    25        INIT_METHOD_CALL                                         !6, 'getElementsByTagName'
         26        SEND_VAL_EX                                              'a'
         27        DO_FCALL                                      0  $23     
         28        ASSIGN                                                   !7, $23
   22    29      > FE_RESET_R                                       $25     !7, ->37
         30    > > FE_FETCH_R                                               $25, !8, ->37
   25    31    >   INIT_METHOD_CALL                                         !8, 'getAttribute'
         32        SEND_VAL_EX                                              'href'
         33        DO_FCALL                                      0  $26     
         34        ECHO                                                     $26
         35        ECHO                                                     '%3Cbr%3E'
   22    36      > JMP                                                      ->30
         37    >   FE_FREE                                                  $25
    8    38        PRE_INC                                                  !3
         39    >   COUNT                                            ~28     !0
         40        IS_SMALLER                                               !3, ~28
         41      > JMPNZ                                                    ~29, ->10
   35    42    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.29 ms | 945 KiB | 18 Q