3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = $_GET['ip']; $siteid = $_GET['siteid']; function check_vote($IP,$ID) { $fg = file_get_contents('http://www.topservers200.com/api/vote/?ip='.$IP); if(strstr($fg,'<status>0</status>') && strstr($fg,'<site_id>'.$ID.'</site_id>')) { return true; } } if(check_vote($ip, $siteid)) { echo "VOTO VALIDADO"; } else { echo "VOTO INVALIDO"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MtIUg
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ip, !1 = $siteid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_R                      global              ~2      '_GET'
          1        FETCH_DIM_R                                      ~3      ~2, 'ip'
          2        ASSIGN                                                   !0, ~3
    5     3        FETCH_R                      global              ~5      '_GET'
          4        FETCH_DIM_R                                      ~6      ~5, 'siteid'
          5        ASSIGN                                                   !1, ~6
   21     6        INIT_FCALL                                               'check_vote'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_FCALL                                      0  $8      
         10      > JMPZ                                                     $8, ->13
   25    11    >   ECHO                                                     'VOTO+VALIDADO'
         12      > JMP                                                      ->14
   33    13    >   ECHO                                                     'VOTO+INVALIDO'
   34    14    > > RETURN                                                   1

Function check_vote:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/MtIUg
function name:  check_vote
number of ops:  22
compiled vars:  !0 = $IP, !1 = $ID, !2 = $fg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2        INIT_FCALL                                               'file_get_contents'
          3        CONCAT                                           ~3      'http%3A%2F%2Fwww.topservers200.com%2Fapi%2Fvote%2F%3Fip%3D', !0
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !2, $4
   13     7        INIT_FCALL                                               'strstr'
          8        SEND_VAR                                                 !2
          9        SEND_VAL                                                 '%3Cstatus%3E0%3C%2Fstatus%3E'
         10        DO_ICALL                                         $6      
         11      > JMPZ_EX                                          ~7      $6, ->19
         12    >   INIT_FCALL                                               'strstr'
         13        SEND_VAR                                                 !2
         14        CONCAT                                           ~8      '%3Csite_id%3E', !1
         15        CONCAT                                           ~9      ~8, '%3C%2Fsite_id%3E'
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                         $10     
         18        BOOL                                             ~7      $10
         19    > > JMPZ                                                     ~7, ->21
   16    20    > > RETURN                                                   <true>
   19    21    > > RETURN                                                   null

End of function check_vote

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.79 ms | 1403 KiB | 18 Q