3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Steam Resolver->Version:1.0 - Made by IOn savage(9/06/12)<br><br>"; error_reporting(0); function contains($substring, $string) { return (strpos($string, $substring) === false ? false : true); } function ping($ip) { $status = ""; if($fp = fsockopen($ip,80,$errCode,$errStr,0.5)) { $status = "Alive"; } else { $status = "Dead"; } fclose($fp); return $status; } $steamid = 'djsanderrr'; $steamid = strlen($steamid) != 0 ? $steamid : die("Must put a steamid"); $steamid = contains("STEAM", $steamid) == false ? die("Must put a steamid.") : $steamid; echo "Searching for IP's Related to:(".$steamid.")<br><br>"; function get_data($URL) { $user_agent = 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $URL); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com/'); $data = curl_exec($ch); curl_close($ch); return $data; } $getIDInfo = get_data("http://steamidconverter.com/".$steamid); $getIDInfoArray = split(" ",$getIDInfo, -1); $getIDInfoCount = count($getIDInfoArray); for($x = 0; x < $getIDInfoCount; ++$x) { if(contains("name=\"keywords\"", $getIDInfoArray[$x])) { $t = 0; while(strlen($profileID) != 17) { $profileID = str_replace(",","",$getIDInfoArray[$x + $t]); $t++; } $steamURL = "http://steamcommunity.com/profiles/"; echo "Click Image to go to profile page!<br>"; echo "<a href=\"".$steamURL.$profileID."\" title=\"ProfileLink\"><img src=\"http://steamsignature.com/classic-".$profileID.".png\"/></a>"; break; } } $searchPage = get_data("http://www.google.com/cse?q=".$steamid."&hl=en&num=2000&client=google-csbe"); $searchArray = split(" ",$searchPage, -1); $searchCount = count($searchArray); $uniqueArray = array(); $n = 0; for($i = 0; $i < $searchCount; ++$i) { if(contains("address",$searchArray[$i])) { if(strlen($searchArray[$i + 1]) == 2 && strlen($searchArray[$i + 2]) > 3 && strlen($searchArray[$i + 2]) < 20 && strlen($searchArray[i + 5]) < 20) { if(!in_array($searchArray[$i + 2], $uniqueArray) && !contains("<br>",$searchArray[$i]) && strlen($searchArray[$i + 5]) > 3) { if(contains("Invoked", $searchArray[$i + 5]) === false) { $Date = contains("-", $searchArray[$i + 5]) == true ? str_replace("-", "/", $searchArray[$i + 5]) : $searchArray[$i + 5]; $DateSplit = split("/",$Date, -1); $DateLen = strlen($DateSplit[2]) > 2 ? str_replace("20", "", $DateSplit[2]) : $DateSplit[2]; if($DateSplit[0] > 12) { $Date = $DateSplit[1]."/".$DateSplit[0]."/".$DateLen; } else { $Date = $DateSplit[0]."/".$DateSplit[1]."/".$DateLen; } } else { $Date = "Unknown"; } $Date = contains(",", $Date) == true ? str_replace(",","",$Date) : $Date; $IP = explode(".",$searchArray[$i + 2]); $IP = $IP[0].".".$IP[1].".".$IP[2].".".$IP[3]; $Country = $searchArray[$i + 1]; $Info = "Date: ".$Date." || (".$Country.") ".$IP.", Status: ".ping($IP); if(contains("...",$Info) === false) { echo "<br>$Info"; array_push($uniqueArray, $searchArray[$i + 2]); $n++; } } else { $dupeCount++; } } } } if($n == 0) { print("<br>Sorry, was not able to find a record of this SteamID ($steamid)</br>"); } else { print("<br><br>Found $n unique IP's and ".$dupeCount." duplicates!"); } ?>

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.3.60.0040.01518.43
8.3.50.0150.00717.29
8.3.40.0070.01018.69
8.3.30.0040.01118.89
8.3.20.0000.00918.57
8.3.10.0060.00320.52
8.3.00.0080.00017.63
8.2.180.0200.00018.29
8.2.170.0100.01019.06
8.2.160.0070.01322.96
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0030.00526.16
8.2.120.0050.00319.95
8.2.110.0000.00819.57
8.2.100.0110.00017.72
8.2.90.0000.00819.36
8.2.80.0040.00417.97
8.2.70.0000.00817.88
8.2.60.0130.00317.80
8.2.50.0040.00418.10
8.2.40.0000.00820.73
8.2.30.0030.00618.10
8.2.20.0070.00017.81
8.2.10.0040.00418.02
8.2.00.0000.00917.87
8.1.280.0090.00625.92
8.1.270.0060.00324.01
8.1.260.0110.00326.35
8.1.250.0040.00428.09
8.1.240.0140.00723.86
8.1.230.0040.00821.03
8.1.220.0030.00517.89
8.1.210.0060.00318.77
8.1.200.0030.00617.48
8.1.190.0050.00317.48
8.1.180.0000.00918.10
8.1.170.0040.00418.96
8.1.160.0050.00222.24
8.1.150.0030.00618.76
8.1.140.0030.00617.55
8.1.130.0000.00717.93
8.1.120.0070.00017.48
8.1.110.0000.00717.45
8.1.100.0000.00817.62
8.1.90.0000.00717.55
8.1.80.0030.00517.63
8.1.70.0000.00717.55
8.1.60.0030.00617.63
8.1.50.0000.00917.41
8.1.40.0030.00517.68
8.1.30.0040.00417.66
8.1.20.0080.00017.64
8.1.10.0000.00817.64
8.1.00.0090.00017.42
8.0.300.0040.00420.12
8.0.290.0060.00316.88
8.0.280.0000.00818.54
8.0.270.0040.00418.11
8.0.260.0070.00018.71
8.0.250.0000.00717.13
8.0.240.0040.00417.13
8.0.230.0030.00317.13
8.0.220.0000.00717.05
8.0.210.0050.00317.11
8.0.200.0000.00717.07
8.0.190.0070.00017.09
8.0.180.0000.00717.02
8.0.170.0030.00617.04
8.0.160.0000.00717.13
8.0.150.0080.00017.01
8.0.140.0080.00416.93
8.0.130.0030.00313.53
8.0.120.0000.00716.91
8.0.110.0030.00617.03
8.0.100.0040.00417.06
8.0.90.0050.00317.09
8.0.80.0070.00717.06
8.0.70.0070.00017.03
8.0.60.0000.00716.95
8.0.50.0000.00717.07
8.0.30.0060.01517.13
8.0.20.0110.00917.12
8.0.10.0070.00017.07
8.0.00.0100.01116.88
7.4.330.0030.00314.84
7.4.320.0030.00316.60
7.4.300.0060.00016.71
7.4.290.0030.00316.63
7.4.280.0000.01316.71
7.4.270.0070.00016.70
7.4.260.0000.00513.40
7.4.250.0000.00916.46
7.4.240.0060.00216.73
7.4.230.0020.00516.73
7.4.220.0060.01516.70
7.4.210.0050.01016.62
7.4.200.0040.00416.82
7.4.190.0050.00216.85
7.4.160.0110.00716.82
7.4.150.0030.01317.07
7.4.140.0150.00517.25
7.4.130.0080.01016.74
7.4.120.0040.01416.67
7.4.110.0090.01616.69
7.4.100.0070.01016.66
7.4.90.0130.00616.76
7.4.80.0070.01118.80
7.4.70.0090.01316.61
7.4.60.0090.00916.63
7.4.50.0030.00616.41
7.4.40.0060.00922.27
7.4.30.0060.01216.86
7.4.00.0060.00715.16
7.3.330.0060.00313.46
7.3.320.0000.00513.25
7.3.310.0000.00716.46
7.3.300.0030.00316.33
7.3.290.0060.00916.45
7.3.280.0080.00916.46
7.3.270.0100.01017.07
7.3.260.0110.00618.24
7.3.250.0140.00616.47
7.3.240.0170.00316.53
7.3.230.0060.01016.66
7.3.210.0170.00716.52
7.3.200.0090.00919.39
7.3.190.0040.01216.68
7.3.180.0110.01116.59
7.3.170.0140.00716.70
7.3.160.0130.00716.66
7.3.120.0100.00815.03
7.3.110.0040.01414.74
7.3.100.0060.01015.02
7.3.90.0110.01114.79
7.3.80.0090.00615.13
7.3.70.0040.00715.10
7.3.60.0030.01314.93
7.3.50.0040.00715.07
7.3.40.0040.01115.00
7.3.30.0060.00914.70
7.3.20.0040.00716.45
7.3.10.0120.00416.59
7.3.00.0100.00616.53
7.2.330.0090.00916.48
7.2.320.0140.00716.59
7.2.310.0160.00616.78
7.2.300.0110.00816.77
7.2.290.0060.01216.58
7.2.250.0040.01515.31
7.2.240.0070.01415.13
7.2.230.0100.00715.14
7.2.220.0000.01615.27
7.2.210.0070.00715.02
7.2.200.0000.01115.04
7.2.190.0100.00315.26
7.2.180.0030.00914.91
7.2.170.0000.01015.16
7.2.130.0120.00616.34
7.2.120.0090.00916.33
7.2.110.0030.01216.44
7.2.100.0130.00316.32
7.2.90.0110.00016.43
7.2.80.0070.01016.54
7.2.70.0060.01316.71
7.2.60.0050.01316.66
7.2.50.0140.00616.53
7.2.40.0110.00716.28
7.2.30.0110.00716.49
7.2.20.0070.00716.13
7.2.10.0070.01016.51
7.2.00.0030.01316.80
7.1.330.0030.01015.92
7.1.320.0040.01215.50
7.1.310.0030.00915.58
7.1.300.0070.00715.93
7.1.290.0000.01415.54
7.1.280.0040.00715.73
7.1.270.0090.00615.67
7.1.260.0070.00415.78
7.1.250.0150.00315.36
7.1.200.0030.00915.50
7.1.70.0040.00417.02
7.1.60.0100.01319.40
7.1.50.0100.01016.79
7.1.00.0000.04022.40
7.0.200.0000.00816.60
7.0.140.0030.07022.00
7.0.100.0170.06320.12
7.0.90.0130.07720.26
7.0.80.0070.07719.98
7.0.70.0130.07320.05
7.0.60.0130.06720.05
7.0.50.0070.07320.49
7.0.40.0100.08020.04
7.0.30.0100.08020.10
7.0.20.0170.08320.07
7.0.10.0100.07320.09
7.0.00.0030.08019.98
5.6.280.0000.07721.04
5.6.250.0100.06320.88
5.6.240.0030.07320.73
5.6.230.0170.06720.81
5.6.220.0030.05020.68
5.6.210.0070.07320.68
5.6.200.0070.08021.08
5.6.190.0070.06720.99
5.6.180.0070.05321.09
5.6.170.0100.08021.20
5.6.160.0070.07321.15
5.6.150.0100.06321.20
5.6.140.0100.07021.19
5.6.130.0170.07321.12
5.6.120.0130.08021.06
5.6.110.0100.04721.04
5.6.100.0100.08021.21
5.6.90.0030.08321.09
5.6.80.0100.06320.53
5.6.70.0130.07020.51
5.6.60.0100.06720.54
5.6.50.0170.07720.38
5.6.40.0170.07320.49
5.6.30.0100.04720.35
5.6.20.0030.08020.46
5.6.10.0030.05020.36
5.6.00.0070.07720.45
5.5.380.0230.06020.57
5.5.370.0200.06020.41
5.5.360.0130.07320.41
5.5.350.0130.05720.51
5.5.340.0070.07720.79
5.5.330.0130.07720.89
5.5.320.0100.08020.97
5.5.310.0100.07720.96
5.5.300.0170.07020.82
5.5.290.0070.07720.81
5.5.280.0200.07320.88
5.5.270.0030.09020.95
5.5.260.0170.05320.82
5.5.250.0070.07320.60
5.5.240.0100.04020.22
5.5.230.0170.04020.27
5.5.220.0030.06320.33
5.5.210.0170.07320.32
5.5.200.0200.06720.14
5.5.190.0070.07720.21
5.5.180.0100.04320.27
5.5.160.0070.08020.31
5.5.150.0030.07720.33
5.5.140.0030.07720.33
5.5.130.0100.07020.17
5.5.120.0170.07020.26
5.5.110.0130.07320.20
5.5.100.0130.06020.19
5.5.90.0070.08020.22
5.5.80.0130.07020.20
5.5.70.0070.07720.02
5.5.60.0030.05320.07
5.5.50.0100.07720.11
5.5.40.0070.07720.11
5.5.30.0130.07020.19
5.5.20.0100.06720.08
5.5.10.0130.07020.19
5.5.00.0100.04320.13
5.4.450.0070.07319.43
5.4.440.0100.07319.21
5.4.430.0030.07719.21
5.4.420.0100.07719.45
5.4.410.0030.05319.32
5.4.400.0030.04718.87
5.4.390.0100.04319.04
5.4.380.0070.04719.10
5.4.370.0130.04319.04
5.4.360.0070.07019.16
5.4.350.0100.06019.21
5.4.340.0230.06019.04
5.4.320.0130.06019.17
5.4.310.0030.08318.88
5.4.300.0030.07319.03
5.4.290.0100.07319.18
5.4.280.0070.07719.09
5.4.270.0170.06018.95
5.4.260.0030.04719.15
5.4.250.0030.08019.23
5.4.240.0000.05019.17
5.4.230.0070.07718.98
5.4.220.0230.05719.22
5.4.210.0070.07319.19
5.4.200.0070.07319.02
5.4.190.0070.05718.94
5.4.180.0070.07319.12
5.4.170.0170.06718.94
5.4.160.0070.05319.03
5.4.150.0070.07319.07
5.4.140.0030.07316.31
5.4.130.0100.05716.48
5.4.120.0170.05716.48
5.4.110.0030.07316.45
5.4.100.0070.05716.48
5.4.90.0130.06716.53
5.4.80.0030.07316.44
5.4.70.0070.07016.50
5.4.60.0170.06316.46
5.4.50.0030.06716.55
5.4.40.0030.07316.42
5.4.30.0030.07716.35
5.4.20.0100.07316.48
5.4.10.0070.06016.52
5.4.00.0070.07015.93
5.3.290.0130.04314.86
5.3.280.0030.07714.73
5.3.270.0070.07714.63
5.3.260.0100.06314.78
5.3.250.0070.04314.68
5.3.240.0100.07014.76
5.3.230.0100.06714.58
5.3.220.0030.04714.61
5.3.210.0200.05314.71
5.3.200.0070.06714.63
5.3.190.0000.08014.60
5.3.180.0100.07714.54
5.3.170.0130.04314.59
5.3.160.0070.07314.68
5.3.150.0100.06714.60
5.3.140.0000.05014.64
5.3.130.0100.04714.55
5.3.120.0130.07714.74
5.3.110.0030.08314.52
5.3.100.0070.07314.17
5.3.90.0070.07314.17
5.3.80.0070.07714.20
5.3.70.0130.06314.17
5.3.60.0100.07313.98
5.3.50.0100.07714.05
5.3.40.0170.04013.93
5.3.30.0030.07313.85
5.3.20.0030.07013.75
5.3.10.0030.05313.82
5.3.00.0170.06013.60

preferences:
48.4 ms | 401 KiB | 5 Q