3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Include the library include('http://downloads.sourceforge.net/project/simplehtmldom/simple_html_dom.php?r=&ts=1404147938&use_mirror=superb-dca3'); // Retrieve the DOM from a given URL $html = file_get_html('http://davidwalsh.name/'); // Find all "A" tags and print their HREFs foreach($html->find('a') as $e) echo $e->href . '<br>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/F145G
function name:  (null)
number of ops:  16
compiled vars:  !0 = $html, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          'http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fsimplehtmldom%2Fsimple_html_dom.php%3Fr%3D%26ts%3D1404147938%26use_mirror%3Dsuperb-dca3', INCLUDE
    6     1        INIT_FCALL_BY_NAME                                       'file_get_html'
          2        SEND_VAL_EX                                              'http%3A%2F%2Fdavidwalsh.name%2F'
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !0, $3
    9     5        INIT_METHOD_CALL                                         !0, 'find'
          6        SEND_VAL_EX                                              'a'
          7        DO_FCALL                                      0  $5      
          8      > FE_RESET_R                                       $6      $5, ->14
          9    > > FE_FETCH_R                                               $6, !1, ->14
   10    10    >   FETCH_OBJ_R                                      ~7      !1, 'href'
         11        CONCAT                                           ~8      ~7, '%3Cbr%3E'
         12        ECHO                                                     ~8
    9    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $6
   10    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.51 ms | 1394 KiB | 13 Q