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.0110.00418.55
8.3.50.0170.00817.44
8.3.40.0060.01219.01
8.3.30.0080.00818.98
8.3.20.0040.00418.86
8.3.10.0090.00020.36
8.3.00.0000.00819.38
8.2.180.0120.00616.88
8.2.170.0120.00322.96
8.2.160.0070.00722.25
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00819.96
8.2.110.0050.00521.07
8.2.100.0040.00818.03
8.2.90.0070.00219.20
8.2.80.0090.00018.18
8.2.70.0040.00417.75
8.2.60.0040.00418.05
8.2.50.0030.00618.07
8.2.40.0000.00718.22
8.2.30.0060.00318.16
8.2.20.0040.00417.75
8.2.10.0040.00417.92
8.2.00.0050.00317.85
8.1.280.0110.00725.92
8.1.270.0080.00023.99
8.1.260.0110.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.52
8.1.230.0040.00721.16
8.1.220.0060.00318.77
8.1.210.0040.00419.08
8.1.200.0100.00017.48
8.1.190.0030.00617.79
8.1.180.0080.00018.10
8.1.170.0000.00818.96
8.1.160.0040.00418.99
8.1.150.0090.00018.79
8.1.140.0050.00317.60
8.1.130.0070.00017.92
8.1.120.0040.00417.48
8.1.110.0030.00517.55
8.1.100.0000.00717.57
8.1.90.0050.00217.61
8.1.80.0040.00417.56
8.1.70.0050.00317.45
8.1.60.0060.00317.57
8.1.50.0000.00817.47
8.1.40.0030.00517.62
8.1.30.0060.00317.72
8.1.20.0000.00817.69
8.1.10.0000.00817.66
8.1.00.0060.00317.62
8.0.300.0060.00320.16
8.0.290.0000.00717.00
8.0.280.0000.00718.43
8.0.270.0030.00517.34
8.0.260.0030.00316.91
8.0.250.0050.00217.09
8.0.240.0030.00717.06
8.0.230.0050.00217.11
8.0.220.0040.00417.08
8.0.210.0040.00317.05
8.0.200.0030.00317.01
8.0.190.0030.00517.13
8.0.180.0040.00417.05
8.0.170.0090.00017.07
8.0.160.0040.00417.03
8.0.150.0000.00916.97
8.0.140.0040.00716.91
8.0.130.0000.00713.50
8.0.120.0080.00017.02
8.0.110.0040.00416.88
8.0.100.0000.00717.12
8.0.90.0070.00017.06
8.0.80.0030.01017.02
8.0.70.0080.00017.02
8.0.60.0000.00716.99
8.0.50.0000.00816.80
8.0.30.0180.00617.38
8.0.20.0050.01217.27
8.0.10.0040.00417.18
8.0.00.0150.01016.83
7.4.330.0000.00514.83
7.4.320.0030.00316.52
7.4.300.0020.00516.75
7.4.290.0030.00516.61
7.4.280.0070.00316.62
7.4.270.0030.00316.61
7.4.260.0000.00513.42
7.4.250.0030.00616.59
7.4.240.0000.00816.55
7.4.230.0000.00716.79
7.4.220.0190.00316.67
7.4.210.0070.01116.77
7.4.200.0050.00216.50
7.4.190.0000.00716.88
7.4.160.0120.00416.68
7.4.150.0110.00717.07
7.4.140.0140.00817.26
7.4.130.0070.01216.63
7.4.120.0080.00816.61
7.4.110.0140.01116.55
7.4.100.0110.01116.47
7.4.90.0090.00916.75
7.4.80.0090.00918.80
7.4.70.0100.01316.52
7.4.60.0070.01116.68
7.4.50.0000.00516.57
7.4.40.0000.01122.27
7.4.30.0040.01316.59
7.3.330.0030.00313.49
7.3.320.0050.00013.48
7.3.310.0070.00016.48
7.3.300.0000.00716.41
7.3.290.0090.00616.53
7.3.280.0100.00816.49
7.3.270.0090.01217.07
7.3.260.0140.00318.24
7.3.250.0110.00716.77
7.3.240.0100.00716.60
7.3.230.0070.01016.72
7.3.210.0060.01216.65
7.3.200.0070.01119.39
7.3.190.0030.01416.55
7.3.180.0000.01616.81
7.3.170.0130.00516.66
7.3.160.0100.00716.60
7.2.330.0170.00016.92
7.2.320.0070.01016.77
7.2.310.0270.02616.84
7.2.300.0060.01316.60
7.2.290.0120.00616.71
7.2.100.1440.00614.63
7.2.90.1160.01314.89
7.2.80.1260.00614.87
7.2.70.1020.00314.90
7.2.60.1410.00714.84
7.2.50.1370.01314.92
7.2.40.1320.00715.11
7.2.30.1930.00614.93
7.2.20.1510.01014.84
7.2.10.0100.00714.72
7.2.00.1030.01215.13
7.1.220.1060.00713.98
7.1.210.1610.01213.97
7.1.200.1120.01014.04
7.1.190.1300.00613.67
7.1.180.1200.00713.99
7.1.170.1290.00013.96
7.1.160.1720.00613.63
7.1.150.1480.01013.82
7.1.140.0860.00613.54
7.1.130.0910.00613.57
7.1.120.0970.00713.99
7.1.110.0590.00314.01
7.1.100.1150.01013.78
7.1.90.1070.01013.80
7.1.80.1510.00313.80
7.1.70.0430.01013.92
7.1.60.1030.00731.95
7.1.50.0690.01031.54
7.1.40.0240.00931.52
7.1.30.0280.00931.92
7.1.20.0300.00731.87
7.0.310.1210.00013.44
7.0.300.0840.01013.45
7.0.290.1060.00713.56
7.0.280.0810.01013.44
7.0.270.0760.00313.44
7.0.260.0860.00313.67
7.0.250.0770.00313.44
7.0.240.0230.00613.60
7.0.230.0070.01513.55
7.0.220.0160.00013.49
7.0.210.0110.01113.54
7.0.200.2620.00713.44
7.0.190.0130.00313.46
7.0.180.0700.00713.44
7.0.170.0030.01313.55
7.0.160.0260.00313.44
5.6.380.0030.01014.27
5.6.370.0120.00014.28
5.6.360.0110.00014.14
5.6.350.0030.01314.23
5.6.340.0050.01014.26
5.6.330.0040.01214.13
5.6.320.0080.00714.20
5.6.310.0050.01014.43

preferences:
37.82 ms | 401 KiB | 5 Q