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.43
8.3.50.0130.00616.42
8.3.40.0110.01118.79
8.3.30.0000.01518.78
8.3.20.0080.00018.60
8.3.10.0050.00320.56
8.3.00.0080.00017.46
8.2.180.0150.00316.50
8.2.170.0150.00022.96
8.2.160.0130.00722.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00819.36
8.2.110.0030.00622.08
8.2.100.0060.00617.84
8.2.90.0040.00419.34
8.2.80.0030.00518.15
8.2.70.0040.00417.75
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0030.00518.16
8.2.20.0080.00017.84
8.2.10.0040.00417.98
8.2.00.0050.00317.85
8.1.280.0060.01225.92
8.1.270.0070.01322.08
8.1.260.0060.00326.35
8.1.250.0030.00528.09
8.1.240.0040.00422.47
8.1.230.0040.00720.95
8.1.220.0030.00518.77
8.1.210.0040.00419.02
8.1.200.0060.00317.48
8.1.190.0040.00417.41
8.1.180.0000.00818.10
8.1.170.0030.00619.02
8.1.160.0000.00719.05
8.1.150.0040.00418.78
8.1.140.0060.00317.60
8.1.130.0070.00017.84
8.1.120.0020.00517.56
8.1.110.0000.00817.40
8.1.100.0060.00317.58
8.1.90.0000.00717.63
8.1.80.0050.00217.55
8.1.70.0040.00417.51
8.1.60.0090.00017.57
8.1.50.0000.00817.52
8.1.40.0000.00817.66
8.1.30.0090.00017.74
8.1.20.0030.00617.73
8.1.10.0000.00817.54
8.1.00.0050.00317.57
8.0.300.0070.00020.06
8.0.290.0040.00416.75
8.0.280.0050.00318.58
8.0.270.0070.00017.29
8.0.260.0070.00018.61
8.0.250.0040.00417.02
8.0.240.0050.00217.14
8.0.230.0040.00417.10
8.0.220.0040.00416.95
8.0.210.0040.00416.99
8.0.200.0030.00317.07
8.0.190.0040.00417.14
8.0.180.0000.00717.08
8.0.170.0070.00317.11
8.0.160.0040.00417.04
8.0.150.0040.00417.02
8.0.140.0030.00917.02
8.0.130.0060.00013.48
8.0.120.0000.00817.01
8.0.110.0050.00316.94
8.0.100.0000.00716.95
8.0.90.0050.00316.97
8.0.80.0030.01317.02
8.0.70.0050.00317.06
8.0.60.0000.00817.08
8.0.50.0030.00517.04
8.0.30.0100.01017.19
8.0.20.0060.01317.21
8.0.10.0040.00417.25
8.0.00.0070.01516.97
7.4.330.0050.00014.65
7.4.320.0030.00316.70
7.4.300.0000.00616.55
7.4.290.0030.00316.50
7.4.280.0040.00816.59
7.4.270.0070.00016.63
7.4.260.0000.00513.39
7.4.250.0050.00316.70
7.4.240.0000.00716.66
7.4.230.0030.00516.81
7.4.220.0150.00616.64
7.4.210.0050.01216.76
7.4.200.0000.00716.50
7.4.190.0040.00416.84
7.4.160.0160.00016.96
7.4.150.0090.01217.07
7.4.140.0120.00617.26
7.4.130.0050.01416.54
7.4.120.0120.00616.62
7.4.110.0160.00616.55
7.4.100.0140.00316.80
7.4.90.0090.00916.41
7.4.80.0000.01718.80
7.4.70.0140.00316.54
7.4.60.0130.01216.62
7.4.50.0040.00416.44
7.4.40.0100.00722.27
7.4.30.0070.01016.72
7.4.00.0070.00715.22
7.3.330.0060.00013.33
7.3.320.0000.00713.39
7.3.310.0030.00316.45
7.3.300.0000.00716.48
7.3.290.0060.00916.45
7.3.280.0100.00616.45
7.3.270.0070.01117.07
7.3.260.0140.00518.24
7.3.250.0050.01616.49
7.3.240.0090.01616.61
7.3.230.0060.01016.48
7.3.210.0110.00616.57
7.3.200.0130.01019.39
7.3.190.0150.00616.61
7.3.180.0100.01016.59
7.3.170.0130.00316.54
7.3.160.0060.00916.61
7.3.120.0110.00715.28
7.3.110.0120.00815.01
7.3.100.0090.00615.14
7.3.90.0040.01114.99
7.3.80.0120.00315.09
7.3.70.0090.00614.87
7.3.60.0100.00714.89
7.3.50.0070.01415.01
7.3.40.0070.00714.95
7.3.30.0040.01115.01
7.3.20.0130.00616.81
7.3.10.0050.01116.58
7.3.00.0050.00916.74
7.2.330.0100.01216.72
7.2.320.0140.00316.48
7.2.310.0090.01516.63
7.2.300.0110.00916.46
7.2.290.0030.01316.63
7.2.240.0070.01015.30
7.2.230.0030.01015.25
7.2.220.0030.01614.78
7.2.210.0070.01015.40
7.2.200.0100.00715.23
7.2.190.0130.00915.18
7.2.180.0170.00315.22
7.2.170.0060.01215.14
7.2.160.0090.00615.17
7.2.150.0110.00716.93
7.2.140.0100.00316.67
7.2.130.0050.00916.77
7.2.120.0070.00816.89
7.2.110.0090.00516.71
7.2.100.0040.01016.89
7.2.90.0120.00516.91
7.2.80.0080.00416.82
7.2.70.0090.00616.87
7.2.60.0090.00616.88
7.2.50.0080.00616.96
7.2.40.0060.00916.91
7.2.30.0100.00416.85
7.2.20.0050.00916.85
7.2.10.0020.01316.94
7.2.00.0040.01217.45
7.1.330.0070.01115.48
7.1.320.0120.00615.46
7.1.310.0060.00915.91
7.1.300.0070.00715.77
7.1.290.0060.00915.52
7.1.280.0120.00615.68
7.1.270.0080.00815.73
7.1.260.0030.00815.61
7.1.250.0030.00915.76
7.1.240.0100.00615.77
7.1.230.0060.00615.88
7.1.220.0040.01215.55
7.1.210.0120.00615.73
7.1.200.0120.00615.92
7.1.190.0130.00315.58
7.1.180.0070.00715.91
7.1.170.0040.01115.93
7.1.160.0060.00615.41
7.1.150.0110.00415.72
7.1.140.0060.00615.89
7.1.130.0070.00715.74
7.1.120.0120.00315.87
7.1.110.0080.00815.45
7.1.100.0090.00616.96
7.1.90.0100.00315.83
7.1.80.0070.00715.52
7.1.70.0070.00716.59
7.1.60.0100.01017.62
7.1.50.0070.01116.32
7.1.40.0100.00316.02
7.1.30.0120.00315.84
7.1.20.0040.00715.82
7.1.10.0030.00715.80
7.1.00.0030.04219.01
7.0.330.0070.00714.96
7.0.320.0110.00415.04
7.0.310.0160.00315.24
7.0.300.0090.00315.16
7.0.290.0140.00015.12
7.0.280.0030.00615.30
7.0.270.0090.00615.13
7.0.260.0060.00615.27
7.0.250.0080.00415.28
7.0.240.0070.01015.23
7.0.230.0160.00015.42
7.0.220.0070.01015.60
7.0.210.0090.00615.14
7.0.200.0060.00616.09
7.0.190.0120.00415.39
7.0.180.0060.00615.36
7.0.170.0070.00315.49
7.0.160.0130.00015.07
7.0.150.0090.00915.11
7.0.140.0070.03818.82
7.0.130.0090.00615.45
7.0.120.0110.00415.53
7.0.110.0060.00315.29
7.0.100.0020.03417.77
7.0.90.0240.04417.64
7.0.80.0110.03617.72
7.0.70.0130.03817.78
7.0.60.0060.04517.63
7.0.50.0260.04017.84
7.0.40.0050.04116.55
7.0.30.0000.03916.71
7.0.20.0070.04316.74
7.0.10.0070.03116.79
7.0.00.0060.02516.72
5.6.380.0100.00014.30
5.6.370.0060.00614.68
5.6.360.0100.00314.11
5.6.350.0000.01114.21
5.6.340.0080.00413.96
5.6.330.0030.00614.53
5.6.320.0080.00414.23
5.6.310.0070.00314.35
5.6.300.0000.01314.16
5.6.290.0080.00414.11
5.6.280.0070.03917.72
5.6.270.0000.01414.56
5.6.260.0080.00414.65
5.6.250.0050.04217.55
5.6.240.0080.04317.57
5.6.230.0100.04217.56
5.6.220.0080.04417.51
5.6.210.0030.03817.55
5.6.200.0030.04217.87
5.6.190.0070.04017.73
5.6.180.0080.02817.89
5.6.170.0090.04017.59
5.6.160.0150.03117.66
5.6.150.0050.03717.68
5.6.140.0130.03817.61
5.6.130.0030.05017.73
5.6.120.0080.04617.70
5.6.110.0040.03117.69
5.6.100.0080.03817.63
5.6.90.0050.04517.44
5.6.80.0080.04217.35
5.6.70.0080.01817.39
5.6.60.0080.02417.34
5.6.50.0070.03717.40
5.6.40.0070.04717.36
5.6.30.0030.04617.30
5.6.20.0080.02917.50
5.6.10.0060.04117.45
5.6.00.0070.04417.39
5.5.380.0130.03315.88
5.5.370.0060.02515.88
5.5.360.0060.04115.74
5.5.350.0030.02815.85
5.5.340.0070.02716.04
5.5.330.0080.04216.05
5.5.320.0050.04016.02
5.5.310.0040.02915.86
5.5.300.0120.03915.85
5.5.290.0080.03915.99
5.5.280.0030.03416.02
5.5.270.0070.02816.05
5.5.260.0020.04416.13
5.5.250.0050.04515.94
5.5.240.0090.03815.68
5.5.230.0080.03715.62
5.5.220.0060.02715.75
5.5.210.0030.02715.53
5.5.200.0070.04415.76
5.5.190.0110.02615.55
5.5.180.0020.02615.77
5.5.170.0050.00511.11
5.5.160.0130.03315.60
5.5.150.0110.03515.76
5.5.140.0020.04215.61
5.5.130.0050.04215.71
5.5.120.0060.02515.66
5.5.110.0020.04515.64
5.5.100.0050.04015.58
5.5.90.0070.03915.57
5.5.80.0030.03815.52
5.5.70.0070.04515.54
5.5.60.0090.03915.59
5.5.50.0060.03715.60
5.5.40.0080.03915.59
5.5.30.0070.03215.55
5.5.20.0070.04215.50
5.5.10.0030.02715.55
5.5.00.0030.04515.46
5.4.450.0060.04115.14
5.4.440.0090.03915.26
5.4.430.0130.03315.24
5.4.420.0020.03815.13
5.4.410.0100.03815.09
5.4.400.0090.02015.03
5.4.390.0040.02215.10
5.4.380.0080.03815.01
5.4.370.0130.03515.06
5.4.360.0070.03414.99
5.4.350.0000.03415.06
5.4.340.0070.04315.07
5.4.330.0050.00510.90
5.4.320.0030.03515.05
5.4.310.0050.04115.00
5.4.300.0110.03614.97
5.4.290.0060.02314.99
5.4.280.0100.03714.92
5.4.270.0060.04015.01
5.4.260.0080.02415.04
5.4.250.0070.04015.00
5.4.240.0110.03814.97
5.4.230.0110.03515.07
5.4.220.0130.04115.10
5.4.210.0060.04015.02
5.4.200.0100.03314.94
5.4.190.0110.02015.01
5.4.180.0050.02915.05
5.4.170.0070.04015.12
5.4.160.0030.04315.00
5.4.150.0120.03015.16
5.4.140.0030.03413.81
5.4.130.0050.04213.74
5.4.120.0080.03613.76
5.4.110.0080.03613.72
5.4.100.0060.03313.69
5.4.90.0040.04013.79
5.4.80.0020.02313.78
5.4.70.0070.03813.80
5.4.60.0070.03213.66
5.4.50.0050.02013.86
5.4.40.0100.01813.78
5.4.30.0050.01813.75
5.4.20.0050.04013.74
5.4.10.0080.03713.77
5.4.00.0030.03713.55
5.3.290.0050.04212.78
5.3.280.0110.03512.82
5.3.270.0050.03812.84
5.3.260.0030.04312.74
5.3.250.0140.03012.77
5.3.240.0020.03712.80
5.3.230.0020.04512.76
5.3.220.0050.04312.76
5.3.210.0080.04012.83
5.3.200.0030.02412.75
5.3.190.0060.02112.76
5.3.180.0100.03612.74
5.3.170.0050.04212.77
5.3.160.0050.04212.74
5.3.150.0040.03012.80
5.3.140.0050.03012.74
5.3.130.0020.04412.81
5.3.120.0050.04112.78
5.3.110.0050.02812.71
5.3.100.0050.02512.54
5.3.90.0030.02312.51
5.3.80.0030.02612.49
5.3.70.0080.02012.54
5.3.60.0050.02412.53
5.3.50.0060.03512.51
5.3.40.0030.04012.44
5.3.30.0050.03812.47
5.3.20.0050.02412.35
5.3.10.0090.03412.26
5.3.00.0030.04012.36

preferences:
40.32 ms | 400 KiB | 5 Q