3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dn="admin"; $pass="\x00\x41"; if (empty($dn) or empty($pass)) { exit(); } //check for empty strings if (preg_match('/[^a-zA-Z]/',$dn) or preg_match('/[^a-zA-Z0-9\x20!@#$%^&*()]/',$pass)) { exit(); } //check for expected values (whitelisting) //if (preg_match('/\x00/',$dn) or preg_match('/\x00/',$pass)) { exit(); } //check for null byte (blacklisting) $ldapconn=ldap_connect("challenge01.root-me.org", "54013") or die("Could not connect to LDAP server."); if ($ldapconn) { ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3); $ldapbind=ldap_bind($ldapconn, $dn, $pass); if ($ldapbind) { echo("success"); } else { echo("fail"); } } ?>

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.0120.00316.75
8.3.60.0090.00918.56
8.3.50.0110.00622.18
8.3.40.0100.01019.14
8.3.30.0090.00618.96
8.3.20.0050.00320.16
8.3.10.0040.00421.85
8.3.00.0050.00519.65
8.2.190.0140.00018.41
8.2.180.0180.00318.42
8.2.170.0040.01122.96
8.2.160.0070.00721.24
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00422.43
8.2.120.0040.00426.35
8.2.110.0100.00022.11
8.2.100.0110.00017.99
8.2.90.0090.00019.22
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0030.00618.03
8.2.50.0040.00418.10
8.2.40.0060.00322.31
8.2.30.0000.00820.93
8.2.20.0040.00417.93
8.2.10.0040.00418.08
8.2.00.0030.00618.14
8.1.280.0090.00625.92
8.1.270.0080.00023.96
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0060.00322.81
8.1.230.0120.00017.77
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0050.00517.60
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0000.00818.62
8.1.160.0000.00722.24
8.1.150.0040.00420.70
8.1.140.0080.00019.61
8.1.130.0000.00817.72
8.1.120.0080.00017.57
8.1.110.0040.00417.52
8.1.100.0030.00317.53
8.1.90.0030.00517.61
8.1.80.0000.00817.65
8.1.70.0070.00017.61
8.1.60.0060.00317.63
8.1.50.0030.00617.64
8.1.40.0030.00617.62
8.1.30.0080.00017.80
8.1.20.0030.00617.78
8.1.10.0050.00317.66
8.1.00.0030.00517.65
8.0.300.0060.00318.77
8.0.290.0000.00716.88
8.0.280.0040.00418.53
8.0.270.0080.00017.15
8.0.260.0030.00317.16
8.0.250.0000.00717.07
8.0.240.0000.00817.04
8.0.230.0070.00017.19
8.0.220.0030.00517.11
8.0.210.0000.00716.97
8.0.200.0030.00617.11
8.0.190.0050.00317.19
8.0.180.0000.00717.14
8.0.170.0050.00317.02
8.0.160.0030.00517.06
8.0.150.0050.00317.13
8.0.140.0100.00017.03
8.0.130.0000.00613.48
8.0.120.0000.00817.10
8.0.110.0040.00417.07
8.0.100.0050.00217.12
8.0.90.0000.00717.10
8.0.80.0140.00516.99
8.0.70.0030.00516.99
8.0.60.0000.00717.07
8.0.50.0040.00416.92
8.0.30.0080.00817.21
8.0.20.0110.00717.45
8.0.10.0040.00417.20
8.0.00.0130.00316.79
7.4.330.0030.00315.08
7.4.320.0040.00416.85
7.4.300.0030.00316.78
7.4.290.0070.00016.75
7.4.280.0040.00416.75
7.4.270.0000.00716.71
7.4.260.0000.00716.81
7.4.250.0030.00316.70
7.4.240.0030.00316.74
7.4.230.0030.00316.60
7.4.220.0060.01316.64
7.4.210.0140.00716.82
7.4.200.0040.00416.70
7.4.160.0100.00716.64
7.4.150.0130.00717.40
7.4.140.0120.00917.86
7.4.130.0100.00716.70
7.4.120.0100.01016.73
7.4.110.0060.01316.74
7.4.100.0070.01516.81
7.4.90.0170.00016.51
7.4.80.0090.01019.39
7.4.70.0120.00316.56
7.4.60.0140.00716.82
7.4.50.0100.00316.49
7.4.40.0130.00316.77
7.4.30.0060.00916.66
7.4.00.0030.01015.15
7.3.330.0050.00313.20
7.3.320.0030.00313.10
7.3.310.0000.00716.35
7.3.300.0040.00416.28
7.3.290.0070.00816.37
7.3.280.0120.00516.35
7.3.270.0090.00917.40
7.3.260.0160.00716.49
7.3.250.0110.00716.38
7.3.240.0100.01016.57
7.3.230.0080.00816.51
7.3.210.0060.01216.67
7.3.200.0130.00316.45
7.3.190.0100.00716.43
7.3.180.0130.00716.57
7.3.170.0080.00816.23
7.3.160.0140.00316.27
7.2.330.0100.00716.61
7.2.320.0070.01016.71
7.2.310.0100.00616.74
7.2.300.0100.00716.88
7.2.290.0140.00316.82
7.2.60.0030.01316.99
7.2.00.0060.00619.53
7.1.200.0100.00315.86
7.1.70.0070.00317.16
7.1.60.0070.00719.75
7.1.00.0000.08022.47
7.0.200.0000.00916.75
7.0.90.1170.00019.94
7.0.80.0830.00020.09
7.0.70.0970.00020.01
7.0.60.0770.00019.95
7.0.50.0900.00020.40
7.0.40.1000.00020.29
7.0.30.1130.00020.41
7.0.20.0870.00020.30
7.0.10.0830.00020.23
7.0.00.0830.00020.36
5.6.240.0800.00020.50
5.6.230.0670.00020.67
5.6.220.0670.00020.79
5.6.210.0700.00020.74
5.6.200.0730.00021.07
5.6.190.0830.00021.17
5.6.180.0770.00021.08
5.6.170.0830.00021.02
5.6.160.0700.00021.18
5.6.150.0930.00021.09
5.6.140.1000.00021.08
5.6.130.0730.00021.02
5.6.120.0900.00021.14
5.6.110.0700.00021.16
5.6.100.0730.00021.09
5.6.90.0800.00021.04
5.6.80.0770.00020.52
5.6.70.0630.00020.45
5.6.60.0730.00020.45
5.6.50.0670.00020.40
5.6.40.0930.00020.44
5.6.30.0670.00020.44
5.6.20.0870.00020.55
5.6.10.0870.00020.49
5.6.00.0800.00020.42

preferences:
72.93 ms | 404 KiB | 6 Q