3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username="alex.everett@okstate.edu"; //LDAP rdn or dn $password="\x00\x41"; //associated password (poison null byte) // $username=$_POST['username']; //uncomment to test POST request // $password=$_POST['password']; //uncomment to test POST request if (!$username or !$password) { exit(); //typical check for no username or password } //end check 1 if (empty($username) or empty($password)) { exit(); //typical check for no username or password }//end check 2 if (is_null($username) or is_null($password)) { exit(); //typical check for no username or password }//end check 3 //notice that typical checks will not prevent the attack echo(strlen($password) . "\r\n"); //outputs the length of the string // connect to ldap server $ldapconn = ldap_connect("challenge01.root-me.org", "54013") //LDAP server or die("Could not connect to LDAP server"); if ($ldapconn) { // binding to ldap server $ldapbind = ldap_bind($ldapconn, $username, $password); //verify binding. Note that the complete data is not passed. if ($ldapbind) { echo "LDAP bind successful..."; } else { echo "LDAP bind 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.0110.01118.31
8.3.50.0140.00422.14
8.3.40.0110.00418.97
8.3.30.0080.00618.79
8.3.20.0090.00020.39
8.3.10.0000.00723.64
8.3.00.0080.00019.97
8.2.180.0110.00718.30
8.2.170.0110.00322.96
8.2.160.0070.00721.20
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0030.00522.09
8.2.120.0040.00426.35
8.2.110.0000.00922.00
8.2.100.0040.00817.72
8.2.90.0000.00920.60
8.2.80.0000.00817.97
8.2.70.0060.00317.80
8.2.60.0050.00317.80
8.2.50.0110.00018.10
8.2.40.0000.00822.33
8.2.30.0040.00421.08
8.2.20.0040.00417.71
8.2.10.0000.00718.02
8.2.00.0000.00718.21
8.1.280.0060.00925.92
8.1.270.0000.00823.92
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0000.01122.07
8.1.220.0040.00417.74
8.1.210.0080.00019.03
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.61
8.1.160.0040.00422.21
8.1.150.0020.00518.79
8.1.140.0000.00719.57
8.1.130.0030.00617.72
8.1.120.0040.00417.44
8.1.110.0000.00817.44
8.1.100.0000.00717.51
8.1.90.0000.00917.39
8.1.80.0020.00517.38
8.1.70.0000.00717.51
8.1.60.0040.00417.56
8.1.50.0030.00617.54
8.1.40.0040.00417.43
8.1.30.0060.00317.51
8.1.20.0020.00517.62
8.1.10.0000.00717.66
8.1.00.0040.00417.41
8.0.300.0000.00719.81
8.0.290.0080.00016.75
8.0.280.0030.00518.46
8.0.270.0040.00417.28
8.0.260.0030.00317.27
8.0.250.0000.00717.09
8.0.240.0070.00017.01
8.0.230.0060.00317.03
8.0.220.0040.00416.85
8.0.210.0000.00716.82
8.0.200.0000.00617.00
8.0.190.0050.00217.04
8.0.180.0040.00416.86
8.0.170.0040.00416.99
8.0.160.0040.00416.96
8.0.150.0040.00416.91
8.0.140.0030.00716.86
8.0.130.0050.00013.36
8.0.120.0000.00916.89
8.0.110.0050.00216.95
8.0.100.0070.00017.00
8.0.90.0040.00417.04
8.0.80.0150.00617.02
8.0.70.0000.00717.03
8.0.60.0030.00316.86
8.0.50.0040.00417.03
8.0.30.0090.01017.03
8.0.20.0090.01017.40
8.0.10.0000.00717.16
8.0.00.0140.00316.88
7.4.330.0000.00515.08
7.4.320.0030.00316.44
7.4.300.0030.00316.54
7.4.290.0030.00516.41
7.4.280.0040.00416.56
7.4.270.0000.00716.48
7.4.260.0040.00416.49
7.4.250.0000.00716.46
7.4.240.0070.00016.63
7.4.230.0040.00416.61
7.4.220.0180.00316.55
7.4.210.0070.00716.66
7.4.200.0030.00316.59
7.4.160.0080.00816.59
7.4.150.0100.01117.40
7.4.140.0140.00717.86
7.4.130.0090.00816.47
7.4.120.0140.00716.64
7.4.110.0090.00916.34
7.4.100.0150.00616.51
7.4.90.0090.00916.51
7.4.80.0140.00719.39
7.4.70.0060.01016.76
7.4.60.0110.00716.57
7.4.50.0060.01016.23
7.4.40.0070.01416.53
7.4.30.0130.01016.52
7.4.00.0080.00814.69
7.3.330.0000.00513.25
7.3.320.0030.00313.25
7.3.310.0000.00816.27
7.3.300.0030.00316.33
7.3.290.0070.00816.35
7.3.280.0120.00716.34
7.3.270.0180.00017.40
7.3.260.0120.00916.46
7.3.250.0120.00716.41
7.3.240.0100.00716.47
7.3.230.0200.00416.48
7.3.210.0080.00816.38
7.3.200.0170.00316.36
7.3.190.0060.01016.64
7.3.180.0120.00916.52
7.3.170.0070.01316.29
7.3.160.0110.00716.46
7.3.10.0200.00316.57
7.3.00.0080.00816.19
7.2.330.0130.00316.32
7.2.320.0130.00316.69
7.2.310.0100.00716.53
7.2.300.0120.00916.64
7.2.290.0130.00316.63
7.2.130.0150.01216.25
7.2.120.0240.01116.75
7.2.110.0250.01216.80
7.2.100.0140.01516.62
7.2.90.0300.00316.32
7.2.80.0440.00016.74
7.2.70.0110.01116.16
7.2.60.0180.00616.71
7.2.50.0200.01116.85
7.2.40.0240.01116.04
7.2.30.0190.00616.32
7.2.20.0100.01016.17
7.2.10.0130.00916.64
7.2.00.0110.01018.02
7.1.250.0250.00715.39
7.1.200.0090.00315.68
7.1.100.0040.00818.03
7.1.70.0050.00317.04
7.1.60.0030.01019.75
7.1.50.0140.00716.63
7.1.00.0000.09022.35
7.0.200.0000.01016.71
7.0.90.0100.06020.05
7.0.80.0230.05719.95
7.0.70.0170.05320.02
7.0.60.0070.06019.91
7.0.50.0030.06720.40
7.0.40.0070.06720.22
7.0.30.0230.05320.45
7.0.20.0000.07020.34
7.0.10.0530.05320.41
7.0.00.0330.05320.36
5.6.240.0070.06320.64
5.6.230.0200.05020.81
5.6.220.0230.05020.61
5.6.210.0130.05320.69
5.6.200.0300.06721.18
5.6.190.0070.06321.13
5.6.180.0030.06321.14
5.6.170.0170.06321.17
5.6.160.0100.05721.16
5.6.150.0070.06021.06
5.6.140.0170.05021.07
5.6.130.0130.05721.13
5.6.120.0130.06021.12
5.6.110.0170.05321.05
5.6.100.0170.05321.15
5.6.90.0170.05321.04
5.6.80.0130.05020.46
5.6.70.0130.08020.43
5.6.60.0200.04320.45
5.6.50.0130.05720.47
5.6.40.0170.05020.43
5.6.30.0070.06320.43
5.6.20.0170.05320.42
5.6.10.0100.05720.33
5.6.00.0070.06320.41

preferences:
46.94 ms | 401 KiB | 5 Q