3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once('/homepages/0/d502303335/htdocs/js/simple_html_dom.php'); $html = file_get_html('http://www.hidemyass.com/proxy-list/search-226132'); echo $html; echo "<br><br><br><br><br><br><br><br><br><br><br><br><br>"; echo "<pre>"; foreach ( $html->find ( 'tr' ) as $element ) { $ip = $element->find ( 'td', 1 ); $port = $element->find ( 'td', 2 ); $ip = getIP ( $ip ); // var_dump($element->xmltext); echo " $ip : $port \n"; } function getIP($obj) { global $html; $style = explode ("<style>", $obj->xmltext ); $stile = style[1]; print_r ($stile); $text = str_replace ( "div", "span", $obj->xmltext ); $text = explode ( "span", $text ); echo "<br><br><br><br>"; //print_r($text); echo "<br><br><br><br>"; $ip = array (); foreach ( $text as $value ) { $value = trim ( $value ); $value = trim ( $value, "<" ); $value = trim ( $value, ">" ); $value = trim ( $value, "." ); if (empty ( $value )) continue; if (strpos ( $value, "display:none" )) { continue; } if (strpos ( $value, "display:none" )) { continue; } if (strpos ( $value, ">" )) { $value = "<" . $value . ">"; } $value = strip_tags ( $value ); $value = trim ( $value, "." ); if (empty ( $value )) continue; $ip [] = $value; } if (is_array ( $ip )) { return implode ( ".", $ip ); } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 34
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 34
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/oS5rE
function name:  (null)
number of ops:  36
compiled vars:  !0 = $html, !1 = $element, !2 = $ip, !3 = $port
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          '%2Fhomepages%2F0%2Fd502303335%2Fhtdocs%2Fjs%2Fsimple_html_dom.php', REQUIRE_ONCE
    4     1        INIT_FCALL_BY_NAME                                       'file_get_html'
          2        SEND_VAL_EX                                              'http%3A%2F%2Fwww.hidemyass.com%2Fproxy-list%2Fsearch-226132'
          3        DO_FCALL                                      0  $5      
          4        ASSIGN                                                   !0, $5
    6     5        ECHO                                                     !0
    8     6        ECHO                                                     '%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E'
   10     7        ECHO                                                     '%3Cpre%3E'
   11     8        INIT_METHOD_CALL                                         !0, 'find'
          9        SEND_VAL_EX                                              'tr'
         10        DO_FCALL                                      0  $7      
         11      > FE_RESET_R                                       $8      $7, ->34
         12    > > FE_FETCH_R                                               $8, !1, ->34
   12    13    >   INIT_METHOD_CALL                                         !1, 'find'
         14        SEND_VAL_EX                                              'td'
         15        SEND_VAL_EX                                              1
         16        DO_FCALL                                      0  $9      
         17        ASSIGN                                                   !2, $9
   13    18        INIT_METHOD_CALL                                         !1, 'find'
         19        SEND_VAL_EX                                              'td'
         20        SEND_VAL_EX                                              2
         21        DO_FCALL                                      0  $11     
         22        ASSIGN                                                   !3, $11
   14    23        INIT_FCALL_BY_NAME                                       'getIP'
         24        SEND_VAR_EX                                              !2
         25        DO_FCALL                                      0  $13     
         26        ASSIGN                                                   !2, $13
   19    27        ROPE_INIT                                     5  ~16     '+'
         28        ROPE_ADD                                      1  ~16     ~16, !2
         29        ROPE_ADD                                      2  ~16     ~16, '+%3A+'
         30        ROPE_ADD                                      3  ~16     ~16, !3
         31        ROPE_END                                      4  ~15     ~16, '+%0A'
         32        ECHO                                                     ~15
   11    33      > JMP                                                      ->12
         34    >   FE_FREE                                                  $8
   80    35      > RETURN                                                   1

Function getip:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 30, Position 2 = 88
Branch analysis from position: 30
2 jumps found. (Code = 78) Position 1 = 31, Position 2 = 88
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 52, Position 2 = 53
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 53
2 jumps found. (Code = 43) Position 1 = 58, Position 2 = 59
Branch analysis from position: 58
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 59
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 65
Branch analysis from position: 64
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 65
2 jumps found. (Code = 43) Position 1 = 70, Position 2 = 73
Branch analysis from position: 70
2 jumps found. (Code = 43) Position 1 = 84, Position 2 = 85
Branch analysis from position: 84
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 85
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 73
Branch analysis from position: 88
2 jumps found. (Code = 43) Position 1 = 91, Position 2 = 96
Branch analysis from position: 91
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 96
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 88
filename:       /in/oS5rE
function name:  getIP
number of ops:  97
compiled vars:  !0 = $obj, !1 = $html, !2 = $style, !3 = $stile, !4 = $text, !5 = $ip, !6 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
   23     1        BIND_GLOBAL                                              !1, 'html'
   25     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%3Cstyle%3E'
          4        FETCH_OBJ_R                                      ~7      !0, 'xmltext'
          5        SEND_VAL                                                 ~7
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !2, $8
   26     8        FETCH_CONSTANT                                   ~10     'style'
          9        FETCH_DIM_R                                      ~11     ~10, 1
         10        ASSIGN                                                   !3, ~11
   27    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                                 
   32    14        INIT_FCALL                                               'str_replace'
         15        SEND_VAL                                                 'div'
         16        SEND_VAL                                                 'span'
         17        FETCH_OBJ_R                                      ~14     !0, 'xmltext'
         18        SEND_VAL                                                 ~14
         19        DO_ICALL                                         $15     
         20        ASSIGN                                                   !4, $15
   34    21        INIT_FCALL                                               'explode'
         22        SEND_VAL                                                 'span'
         23        SEND_VAR                                                 !4
         24        DO_ICALL                                         $17     
         25        ASSIGN                                                   !4, $17
   37    26        ECHO                                                     '%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E'
   39    27        ECHO                                                     '%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cbr%3E'
   42    28        ASSIGN                                                   !5, <array>
   44    29      > FE_RESET_R                                       $20     !4, ->88
         30    > > FE_FETCH_R                                               $20, !6, ->88
   45    31    >   INIT_FCALL                                               'trim'
         32        SEND_VAR                                                 !6
         33        DO_ICALL                                         $21     
         34        ASSIGN                                                   !6, $21
   46    35        INIT_FCALL                                               'trim'
         36        SEND_VAR                                                 !6
         37        SEND_VAL                                                 '%3C'
         38        DO_ICALL                                         $23     
         39        ASSIGN                                                   !6, $23
   47    40        INIT_FCALL                                               'trim'
         41        SEND_VAR                                                 !6
         42        SEND_VAL                                                 '%3E'
         43        DO_ICALL                                         $25     
         44        ASSIGN                                                   !6, $25
   48    45        INIT_FCALL                                               'trim'
         46        SEND_VAR                                                 !6
         47        SEND_VAL                                                 '.'
         48        DO_ICALL                                         $27     
         49        ASSIGN                                                   !6, $27
   50    50        ISSET_ISEMPTY_CV                                         !6
         51      > JMPZ                                                     ~29, ->53
   51    52    > > JMP                                                      ->30
   53    53    >   INIT_FCALL                                               'strpos'
         54        SEND_VAR                                                 !6
         55        SEND_VAL                                                 'display%3Anone'
         56        DO_ICALL                                         $30     
         57      > JMPZ                                                     $30, ->59
   54    58    > > JMP                                                      ->30
   57    59    >   INIT_FCALL                                               'strpos'
         60        SEND_VAR                                                 !6
         61        SEND_VAL                                                 'display%3Anone'
         62        DO_ICALL                                         $31     
         63      > JMPZ                                                     $31, ->65
   58    64    > > JMP                                                      ->30
   61    65    >   INIT_FCALL                                               'strpos'
         66        SEND_VAR                                                 !6
         67        SEND_VAL                                                 '%3E'
         68        DO_ICALL                                         $32     
         69      > JMPZ                                                     $32, ->73
   62    70    >   CONCAT                                           ~33     '%3C', !6
         71        CONCAT                                           ~34     ~33, '%3E'
         72        ASSIGN                                                   !6, ~34
   65    73    >   INIT_FCALL                                               'strip_tags'
         74        SEND_VAR                                                 !6
         75        DO_ICALL                                         $36     
         76        ASSIGN                                                   !6, $36
   67    77        INIT_FCALL                                               'trim'
         78        SEND_VAR                                                 !6
         79        SEND_VAL                                                 '.'
         80        DO_ICALL                                         $38     
         81        ASSIGN                                                   !6, $38
   69    82        ISSET_ISEMPTY_CV                                         !6
         83      > JMPZ                                                     ~40, ->85
   70    84    > > JMP                                                      ->30
   72    85    >   ASSIGN_DIM                                               !5
         86        OP_DATA                                                  !6
   44    87      > JMP                                                      ->30
         88    >   FE_FREE                                                  $20
   75    89        TYPE_CHECK                                  128          !5
         90      > JMPZ                                                     ~42, ->96
   76    91    >   INIT_FCALL                                               'implode'
         92        SEND_VAL                                                 '.'
         93        SEND_VAR                                                 !5
         94        DO_ICALL                                         $43     
         95      > RETURN                                                   $43
   78    96    > > RETURN                                                   null

End of function getip

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.41 ms | 1413 KiB | 27 Q