3v4l.org

run code in 300+ PHP versions simultaneously
<html> <title>Fearsome Angels</title> <body> <font color="#33CC33 "> <center> <div style="text-align: left;"> <?php $ch = curl_init("http://www.tibia.com/community/?subtopic=guilds&page=view&GuildName=Fearsome+Angels"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); //echo '<pre>'.htmlspecialchars($output).'</pre><hr/>'; preg_match_all('/name=[^"]+">([^><]+)<\/A>/', $output, $matched); $fp = fopen("http://www.tibia.com/community/?subtopic=worlds&world=Refugia","r"); while (feof($fp) != 1) $text= $text.stripslashes(fgets($fp,10000)); str_replace("+", " ", $text); ?> <div id="code"> <h3> <?php $text= $text.stripslashes(fgets($fp,10000)); foreach ($matched[1] as $value){ if (strpos($text, $value) > 1) { $online .= $value. " <b><font color='green'></font></b> <br>"; } } echo $online; ?> </h3> </div> <? fclose($fp); ?> </div> </center> </font> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 55, Position 2 = 41
Branch analysis from position: 55
2 jumps found. (Code = 77) Position 1 = 72, Position 2 = 82
Branch analysis from position: 72
2 jumps found. (Code = 78) Position 1 = 73, Position 2 = 82
Branch analysis from position: 73
2 jumps found. (Code = 43) Position 1 = 79, Position 2 = 81
Branch analysis from position: 79
1 jumps found. (Code = 42) Position 1 = 72
Branch analysis from position: 72
Branch analysis from position: 81
Branch analysis from position: 82
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 82
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 55, Position 2 = 41
Branch analysis from position: 55
Branch analysis from position: 41
filename:       /in/3ApDq
function name:  (null)
number of ops:  90
compiled vars:  !0 = $ch, !1 = $output, !2 = $matched, !3 = $fp, !4 = $text, !5 = $value, !6 = $online
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Ctitle%3EFearsome+Angels%3C%2Ftitle%3E%0A%3Cbody%3E%0A%0A%3Cfont+color%3D%22%2333CC33+%22%3E%0A%3Ccenter%3E%0A%3Cdiv+style%3D%22text-align%3A+left%3B%22%3E%0A'
    9     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        SEND_VAL_EX                                              'http%3A%2F%2Fwww.tibia.com%2Fcommunity%2F%3Fsubtopic%3Dguilds%26page%3Dview%26GuildName%3DFearsome%2BAngels'
          3        DO_FCALL                                      0  $7      
          4        ASSIGN                                                   !0, $7
   10     5        INIT_FCALL_BY_NAME                                       'curl_setopt'
          6        SEND_VAR_EX                                              !0
          7        FETCH_CONSTANT                                   ~9      'CURLOPT_HEADER'
          8        SEND_VAL_EX                                              ~9
          9        SEND_VAL_EX                                              0
         10        DO_FCALL                                      0          
   11    11        INIT_FCALL_BY_NAME                                       'curl_setopt'
         12        SEND_VAR_EX                                              !0
         13        FETCH_CONSTANT                                   ~11     'CURLOPT_POST'
         14        SEND_VAL_EX                                              ~11
         15        SEND_VAL_EX                                              1
         16        DO_FCALL                                      0          
   12    17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !0
         19        FETCH_CONSTANT                                   ~13     'CURLOPT_RETURNTRANSFER'
         20        SEND_VAL_EX                                              ~13
         21        SEND_VAL_EX                                              1
         22        DO_FCALL                                      0          
   13    23        INIT_FCALL_BY_NAME                                       'curl_exec'
         24        SEND_VAR_EX                                              !0
         25        DO_FCALL                                      0  $15     
         26        ASSIGN                                                   !1, $15
   14    27        INIT_FCALL_BY_NAME                                       'curl_close'
         28        SEND_VAR_EX                                              !0
         29        DO_FCALL                                      0          
   16    30        INIT_FCALL                                               'preg_match_all'
         31        SEND_VAL                                                 '%2Fname%3D%5B%5E%22%5D%2B%22%3E%28%5B%5E%3E%3C%5D%2B%29%3C%5C%2FA%3E%2F'
         32        SEND_VAR                                                 !1
         33        SEND_REF                                                 !2
         34        DO_ICALL                                                 
   18    35        INIT_FCALL                                               'fopen'
         36        SEND_VAL                                                 'http%3A%2F%2Fwww.tibia.com%2Fcommunity%2F%3Fsubtopic%3Dworlds%26world%3DRefugia'
         37        SEND_VAL                                                 'r'
         38        DO_ICALL                                         $19     
         39        ASSIGN                                                   !3, $19
   19    40      > JMP                                                      ->50
   20    41    >   INIT_FCALL                                               'stripslashes'
         42        INIT_FCALL                                               'fgets'
         43        SEND_VAR                                                 !3
         44        SEND_VAL                                                 10000
         45        DO_ICALL                                         $21     
         46        SEND_VAR                                                 $21
         47        DO_ICALL                                         $22     
         48        CONCAT                                           ~23     !4, $22
         49        ASSIGN                                                   !4, ~23
   19    50    >   INIT_FCALL                                               'feof'
         51        SEND_VAR                                                 !3
         52        DO_ICALL                                         $25     
         53        IS_NOT_EQUAL                                             $25, 1
         54      > JMPNZ                                                    ~26, ->41
   20    55    >   INIT_FCALL                                               'str_replace'
         56        SEND_VAL                                                 '%2B'
         57        SEND_VAL                                                 '+'
         58        SEND_VAR                                                 !4
         59        DO_ICALL                                                 
   22    60        ECHO                                                     '%3Cdiv+id%3D%22code%22%3E%0A%3Ch3%3E%0A'
   25    61        INIT_FCALL                                               'stripslashes'
         62        INIT_FCALL                                               'fgets'
         63        SEND_VAR                                                 !3
         64        SEND_VAL                                                 10000
         65        DO_ICALL                                         $28     
         66        SEND_VAR                                                 $28
         67        DO_ICALL                                         $29     
         68        CONCAT                                           ~30     !4, $29
         69        ASSIGN                                                   !4, ~30
   27    70        FETCH_DIM_R                                      ~32     !2, 1
         71      > FE_RESET_R                                       $33     ~32, ->82
         72    > > FE_FETCH_R                                               $33, !5, ->82
   28    73    >   INIT_FCALL                                               'strpos'
         74        SEND_VAR                                                 !4
         75        SEND_VAR                                                 !5
         76        DO_ICALL                                         $34     
         77        IS_SMALLER                                               1, $34
         78      > JMPZ                                                     ~35, ->81
   29    79    >   CONCAT                                           ~36     !5, '+%3Cb%3E%3Cfont+color%3D%27green%27%3E%3C%2Ffont%3E%3C%2Fb%3E+%3Cbr%3E'
         80        ASSIGN_OP                                     8          !6, ~36
   27    81    > > JMP                                                      ->72
         82    >   FE_FREE                                                  $33
   33    83        ECHO                                                     !6
   36    84        ECHO                                                     '%3C%2Fh3%3E%0A%3C%2Fdiv%3E%0A'
   39    85        INIT_FCALL                                               'fclose'
         86        SEND_VAR                                                 !3
         87        DO_ICALL                                                 
   41    88        ECHO                                                     '%3C%2Fdiv%3E%0A%3C%2Fcenter%3E%0A%3C%2Ffont%3E%0A%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   46    89      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.66 ms | 1396 KiB | 29 Q