3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = file_get_html('http://www.google.com/'); // Find all images foreach($html->find('img') as $element) echo $element->src . '<br>'; // Find all links foreach($html->find('a') as $element) echo $element->href . '<br>';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 23
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 13
filename:       /in/ipWnt
function name:  (null)
number of ops:  25
compiled vars:  !0 = $html, !1 = $element
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'file_get_html'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fwww.google.com%2F'
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_METHOD_CALL                                         !0, 'find'
          5        SEND_VAL_EX                                              'img'
          6        DO_FCALL                                      0  $4      
          7      > FE_RESET_R                                       $5      $4, ->13
          8    > > FE_FETCH_R                                               $5, !1, ->13
    6     9    >   FETCH_OBJ_R                                      ~6      !1, 'src'
         10        CONCAT                                           ~7      ~6, '%3Cbr%3E'
         11        ECHO                                                     ~7
    5    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $5
    9    14        INIT_METHOD_CALL                                         !0, 'find'
         15        SEND_VAL_EX                                              'a'
         16        DO_FCALL                                      0  $8      
         17      > FE_RESET_R                                       $9      $8, ->23
         18    > > FE_FETCH_R                                               $9, !1, ->23
   10    19    >   FETCH_OBJ_R                                      ~10     !1, 'href'
         20        CONCAT                                           ~11     ~10, '%3Cbr%3E'
         21        ECHO                                                     ~11
    9    22      > JMP                                                      ->18
         23    >   FE_FREE                                                  $9
   10    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.06 ms | 1395 KiB | 13 Q