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 = mysql_escape_string('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.0150.00616.63
8.3.50.0120.01017.38
8.3.40.0150.00018.96
8.3.30.0120.00618.73
8.3.20.0040.00418.77
8.3.10.0040.00420.48
8.3.00.0060.00319.38
8.2.180.0090.00617.00
8.2.170.0120.00322.96
8.2.160.0120.00322.17
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00719.71
8.2.110.0030.00622.17
8.2.100.0040.00717.84
8.2.90.0030.00518.08
8.2.80.0030.00617.97
8.2.70.0100.00217.75
8.2.60.0060.00318.16
8.2.50.0040.00418.07
8.2.40.0000.00818.34
8.2.30.0080.00018.09
8.2.20.0000.00817.77
8.2.10.0030.00517.79
8.2.00.0030.00517.74
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0070.01126.35
8.1.250.0070.00028.09
8.1.240.0060.00322.17
8.1.230.0000.01122.73
8.1.220.0040.00417.74
8.1.210.0030.00618.98
8.1.200.0030.00617.36
8.1.190.0050.00317.50
8.1.180.0040.00818.10
8.1.170.0030.00618.71
8.1.160.0040.00418.93
8.1.150.0030.00518.63
8.1.140.0040.00417.49
8.1.130.0030.00317.87
8.1.120.0000.00717.46
8.1.110.0070.00317.49
8.1.100.0000.00817.34
8.1.90.0050.00317.36
8.1.80.0030.00317.43
8.1.70.0070.00017.39
8.1.60.0080.00017.45
8.1.50.0000.00817.55
8.1.40.0060.00317.45
8.1.30.0040.00417.63
8.1.20.0040.00417.76
8.1.10.0080.00017.68
8.1.00.0000.00917.39
8.0.300.0060.00320.06
8.0.290.0040.00417.00
8.0.280.0030.00318.44
8.0.270.0000.00717.41
8.0.260.0080.00017.00
8.0.250.0000.00817.13
8.0.240.0070.00517.07
8.0.230.0000.00717.12
8.0.220.0000.00717.03
8.0.210.0040.00416.89
8.0.200.0030.00317.10
8.0.190.0000.00717.12
8.0.180.0080.00017.02
8.0.170.0050.00316.95
8.0.160.0040.00417.07
8.0.150.0040.00416.97
8.0.140.0030.00516.89
8.0.130.0030.00313.47
8.0.120.0040.00416.96
8.0.110.0000.00716.94
8.0.100.0050.00216.78
8.0.90.0040.00416.91
8.0.80.0060.00917.06
8.0.70.0000.00816.95
8.0.60.0040.00416.85
8.0.50.0040.00417.09
8.0.30.0100.01217.16
8.0.20.0110.00817.20
8.0.10.0000.00817.17
8.0.00.0160.00516.91
7.4.330.0060.00014.71
7.4.320.0030.00316.56
7.4.300.0060.00016.44
7.4.290.0030.00316.45
7.4.280.0030.00616.58
7.4.270.0000.00816.64
7.4.260.0030.00313.30
7.4.250.0040.00416.53
7.4.240.0040.00416.48
7.4.230.0090.00016.34
7.4.220.0170.01116.64
7.4.210.0070.01116.58
7.4.200.0000.00716.56
7.4.190.0030.00316.73
7.4.160.0080.00816.55
7.4.150.0060.01317.07
7.4.140.0150.00217.20
7.4.130.0090.01016.62
7.4.120.0070.01116.75
7.4.110.0100.00916.52
7.4.100.0040.01416.63
7.4.90.0100.00916.76
7.4.80.0030.01318.80
7.4.70.0150.00416.55
7.4.60.0100.01416.62
7.4.50.0030.00616.75
7.4.40.0070.00722.27
7.4.30.0100.00616.75
7.4.10.0100.00715.09
7.4.00.0050.01314.96
7.3.330.0000.00813.27
7.3.320.0030.00313.20
7.3.310.0000.00716.40
7.3.300.0030.00316.36
7.3.290.0070.00716.45
7.3.280.0080.01016.46
7.3.270.0070.01017.07
7.3.260.0130.00818.24
7.3.250.0080.01016.52
7.3.240.0180.00616.40
7.3.230.0030.01316.43
7.3.210.0130.00316.44
7.3.200.0120.00619.39
7.3.190.0120.00616.52
7.3.180.0090.00616.52
7.3.170.0100.00616.69
7.3.160.0080.01516.69
7.3.130.0160.00315.13
7.3.120.0050.01314.82
7.3.110.0000.01214.80
7.3.100.0090.00614.70
7.3.90.0040.00415.17
7.3.80.0040.00714.54
7.3.70.0130.00314.96
7.3.60.0030.01114.79
7.3.50.0060.00914.86
7.3.40.0030.00614.85
7.3.30.0070.00714.63
7.3.20.0070.00716.68
7.3.10.0060.00616.63
7.3.00.0070.00716.67
7.2.330.0030.01516.73
7.2.320.0070.01016.49
7.2.310.0160.00816.84
7.2.300.0120.00616.74
7.2.290.0090.00916.55
7.2.260.0100.01014.58
7.2.250.0090.00914.95
7.2.240.0090.00614.73
7.2.230.0040.01214.93
7.2.220.0040.00715.17
7.2.210.0090.00615.32
7.2.200.0080.00515.02
7.2.190.0030.01014.85
7.2.180.0070.01015.13
7.2.170.0040.00715.16
7.2.160.0130.00314.81
7.2.150.0030.01016.79
7.2.140.0040.00716.72
7.2.130.0060.00616.76
7.2.120.0070.00716.70
7.2.110.0060.00716.80
7.2.100.0060.00716.64
7.2.90.0050.00916.61
7.2.80.0050.01116.69
7.2.70.0070.00716.86
7.2.60.0090.00516.75
7.2.50.0070.00716.89
7.2.40.0040.01116.76
7.2.30.0070.00516.78
7.2.20.0030.00816.87
7.2.10.0070.00716.85
7.2.00.0050.00817.66
7.1.330.0070.00715.84
7.1.320.0000.01215.58
7.1.310.0030.00615.33
7.1.300.0040.00415.72
7.1.290.0000.01415.68
7.1.280.0030.00915.47
7.1.270.0000.00815.77
7.1.260.0030.01015.64
7.1.250.0050.00715.51
7.1.240.0050.00515.55
7.1.230.0040.00915.77
7.1.220.0090.00215.68
7.1.210.0050.00715.71
7.1.200.0040.00815.61
7.1.190.0050.01115.74
7.1.180.0070.00515.54
7.1.170.0020.01315.79
7.1.160.0010.01115.59
7.1.150.0060.00815.66
7.1.140.0020.00815.66
7.1.130.0070.00415.58
7.1.120.0060.00815.58
7.1.110.0070.00515.47
7.1.100.0060.00816.45
7.1.90.0080.00315.64
7.1.80.0060.00615.75
7.1.70.0010.01316.04
7.1.60.0040.01217.01
7.1.50.0080.00715.98
7.1.40.0020.01115.75
7.1.30.0020.01215.71
7.1.20.0020.01115.61
7.1.10.0050.00515.54
7.1.00.0050.02817.91
7.0.330.0070.00715.04
7.0.320.0050.00715.23
7.0.310.0070.00715.06
7.0.300.0080.00415.27
7.0.290.0030.00815.46
7.0.280.0070.00315.35
7.0.270.0060.00815.31
7.0.260.0030.00915.18
7.0.250.0070.00515.20
7.0.240.0020.01215.36
7.0.230.0040.00815.37
7.0.220.0060.00415.45
7.0.210.0050.00615.25
7.0.200.0040.00715.71
7.0.190.0050.00815.28
7.0.180.0070.00715.39
7.0.170.0040.00915.43
7.0.160.0040.01015.31
7.0.150.0090.00215.34
7.0.140.0090.02617.58
7.0.130.0050.00615.51
7.0.120.0060.00715.42
7.0.110.0060.00615.28
7.0.100.0090.02416.91
7.0.90.0070.01816.94
7.0.80.0130.02216.99
7.0.70.0140.02016.93
7.0.60.0080.02916.76
7.0.50.0030.03617.04
7.0.40.0040.02215.65
7.0.30.0040.02415.48
7.0.20.0060.03315.58
7.0.10.0030.02215.61
7.0.00.0040.02215.56
5.6.400.0060.00614.12
5.6.390.0030.00613.91
5.6.380.0020.00914.27
5.6.370.0050.00914.26
5.6.360.0010.01014.08
5.6.350.0040.00914.44
5.6.340.0020.00814.18
5.6.330.0050.00714.22
5.6.320.0050.01114.23
5.6.310.0070.00314.49
5.6.300.0050.00914.21
5.6.290.0030.00614.06
5.6.280.0040.03016.49
5.6.270.0070.00314.24
5.6.260.0040.00914.22
5.6.250.0030.03116.46
5.6.240.0070.02816.31
5.6.230.0060.03216.38
5.6.220.0060.02916.33
5.6.210.0100.02716.26
5.6.200.0060.03716.50
5.6.190.0030.02716.44
5.6.180.0060.03516.60
5.6.170.0070.03116.46
5.6.160.0060.03116.53
5.6.150.0040.03216.63
5.6.140.0050.03216.43
5.6.130.0060.03216.50
5.6.120.0070.03016.68
5.6.110.0020.03216.52
5.6.100.0070.02416.47
5.6.90.0080.02716.36
5.6.80.0050.03116.19
5.6.70.0040.03216.14
5.6.60.0060.03016.24
5.6.50.0080.02416.11
5.6.40.0060.02716.39
5.6.30.0090.02716.24
5.6.20.0080.03016.21
5.6.10.0060.02316.26
5.6.00.0080.01916.13
5.5.380.0050.02615.15
5.5.370.0070.02515.29
5.5.360.0060.02915.27
5.5.350.0060.03315.15
5.5.340.0060.02615.46
5.5.330.0040.03315.30
5.5.320.0080.02915.38
5.5.310.0070.03015.41
5.5.300.0050.03015.37
5.5.290.0020.03415.27
5.5.280.0050.02615.40
5.5.270.0090.02815.27
5.5.260.0020.02815.25
5.5.250.0070.01815.33
5.5.240.0080.02815.17
5.5.230.0040.01915.07
5.5.220.0060.02215.13
5.5.210.0070.02215.04
5.5.200.0060.02615.08
5.5.190.0040.02915.02
5.5.180.0100.02614.97
5.5.170.0060.00612.38
5.5.160.0070.01915.04
5.5.150.0040.02615.08
5.5.140.0050.02215.20
5.5.130.0070.01715.09
5.5.120.0030.02115.10
5.5.110.0030.02615.23
5.5.100.0050.02315.10
5.5.90.0060.02715.00
5.5.80.0080.02914.91
5.5.70.0090.01714.99
5.5.60.0080.02715.04
5.5.50.0060.01714.92
5.5.40.0090.02315.04
5.5.30.0000.02915.12
5.5.20.0080.03015.04
5.5.10.0050.02815.14
5.5.00.0070.02415.02
5.4.450.0090.01413.87
5.4.440.0060.03214.02
5.4.430.0050.02013.82
5.4.420.0010.03013.96
5.4.410.0070.02013.99
5.4.400.0030.02913.83
5.4.390.0020.01813.86
5.4.380.0060.02813.87
5.4.370.0080.01413.93
5.4.360.0050.03113.90
5.4.350.0060.01413.81
5.4.340.0040.02813.68
5.4.330.0030.00611.19
5.4.320.0060.02613.95
5.4.310.0010.02213.72
5.4.300.0050.02813.92
5.4.290.0060.02613.93
5.4.280.0030.02613.82
5.4.270.0080.02013.90
5.4.260.0060.03113.96
5.4.250.0040.02513.93
5.4.240.0060.03013.90
5.4.230.0090.02213.87
5.4.220.0040.02913.88
5.4.210.0050.03313.87
5.4.200.0070.02213.82
5.4.190.0060.01713.90
5.4.180.0040.01813.82
5.4.170.0060.02813.90
5.4.160.0030.02914.01
5.4.150.0090.02613.84
5.4.140.0050.01812.94
5.4.130.0050.01812.99
5.4.120.0050.01513.02
5.4.110.0050.01912.91
5.4.100.0020.02413.01
5.4.90.0080.02613.07
5.4.80.0060.02612.99
5.4.70.0050.02413.03
5.4.60.0030.02813.03
5.4.50.0040.01713.04
5.4.40.0040.02212.99
5.4.30.0030.02312.98
5.4.20.0060.02512.90
5.4.10.0040.02613.04
5.4.00.0060.02512.89
5.3.290.0050.02412.58
5.3.280.0040.02712.45
5.3.270.0020.03412.54
5.3.260.0040.02512.57
5.3.250.0040.04012.54
5.3.240.0030.03812.61
5.3.230.0020.04012.61
5.3.220.0080.03012.43
5.3.210.0030.04212.63
5.3.200.0050.01812.56
5.3.190.0030.04012.56
5.3.180.0050.03112.52
5.3.170.0050.04012.63
5.3.160.0070.03512.58
5.3.150.0000.04912.64
5.3.140.0030.02312.65
5.3.130.0050.03612.56
5.3.120.0020.02112.46
5.3.110.0080.03712.60
5.3.100.0050.02712.30
5.3.90.0030.02012.36
5.3.80.0060.03112.19
5.3.70.0080.03312.25
5.3.60.0020.02012.25
5.3.50.0070.03712.25
5.3.40.0060.03812.22
5.3.30.0100.03312.16
5.3.20.0030.02012.10
5.3.10.0050.03512.07
5.3.00.0040.03811.97

preferences:
48.15 ms | 401 KiB | 5 Q