3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dn="cn=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.0100.01016.61
8.3.60.0030.01318.20
8.3.50.0110.00721.98
8.3.40.0110.00818.79
8.3.30.0110.00318.71
8.3.20.0070.00020.38
8.3.10.0040.00421.94
8.3.00.0060.00319.74
8.2.190.0070.00718.56
8.2.180.0040.01118.66
8.2.170.0070.00722.96
8.2.160.0000.01420.96
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00222.13
8.2.120.0080.00026.35
8.2.110.0040.00419.27
8.2.100.0070.00418.18
8.2.90.0050.00318.96
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0000.00822.32
8.2.30.0040.00421.09
8.2.20.0030.00617.68
8.2.10.0040.00418.11
8.2.00.0040.00418.03
8.1.280.0170.00325.92
8.1.270.0040.00423.91
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00621.39
8.1.230.0080.00419.50
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0050.00318.59
8.1.160.0040.00422.14
8.1.150.0000.00820.59
8.1.140.0000.00719.59
8.1.130.0030.00317.76
8.1.120.0040.00417.50
8.1.110.0080.00017.35
8.1.100.0040.00417.44
8.1.90.0000.00717.38
8.1.80.0070.00017.53
8.1.70.0000.00717.49
8.1.60.0040.00417.60
8.1.50.0000.00817.44
8.1.40.0090.00017.52
8.1.30.0000.00917.63
8.1.20.0040.00417.58
8.1.10.0000.00817.52
8.1.00.0040.00517.54
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.35
8.0.270.0030.00617.32
8.0.260.0000.00617.18
8.0.250.0030.00417.00
8.0.240.0030.00616.99
8.0.230.0000.00716.94
8.0.220.0040.00416.99
8.0.210.0040.00416.96
8.0.200.0060.00316.90
8.0.190.0040.00417.05
8.0.180.0040.00416.95
8.0.170.0040.00417.02
8.0.160.0070.00016.80
8.0.150.0000.00716.91
8.0.140.0080.00316.82
8.0.130.0050.00013.40
8.0.120.0030.00516.91
8.0.110.0000.00716.88
8.0.100.0030.00516.84
8.0.90.0040.00416.80
8.0.80.0060.00816.96
8.0.70.0080.00016.81
8.0.60.0030.00416.97
8.0.50.0000.00817.01
8.0.30.0030.01517.17
8.0.20.0110.00917.40
8.0.10.0040.00417.05
8.0.00.0130.00316.72
7.4.330.0040.00415.08
7.4.320.0000.00616.62
7.4.300.0000.00616.53
7.4.290.0030.00316.50
7.4.280.0030.00616.62
7.4.270.0000.00716.55
7.4.260.0000.00816.63
7.4.250.0040.00416.57
7.4.240.0070.00016.54
7.4.230.0030.00316.71
7.4.220.0240.01116.71
7.4.210.0030.01116.62
7.4.200.0070.00016.62
7.4.160.0080.00716.56
7.4.150.0150.00317.40
7.4.140.0100.01117.86
7.4.130.0090.01016.55
7.4.120.0100.00616.51
7.4.110.0120.00616.51
7.4.100.0110.00716.54
7.4.90.0100.00716.51
7.4.80.0080.00919.39
7.4.70.0030.01216.57
7.4.60.0120.00916.71
7.4.50.0040.01516.47
7.4.40.0070.01016.48
7.4.30.0080.00816.52
7.4.10.0060.01314.90
7.4.00.0070.01015.09
7.3.330.0030.00313.11
7.3.320.0020.00213.02
7.3.310.0030.00516.41
7.3.300.0000.00716.20
7.3.290.0070.00916.27
7.3.280.0110.00716.26
7.3.270.0090.00817.40
7.3.260.0100.00716.40
7.3.250.0150.00516.36
7.3.240.0110.00816.42
7.3.230.0090.00916.50
7.3.210.0070.01016.52
7.3.200.0110.01116.29
7.3.190.0100.01016.30
7.3.180.0140.00416.64
7.3.170.0080.00816.51
7.3.160.0140.00916.35
7.3.130.0060.01214.81
7.3.120.0100.00714.74
7.3.110.0100.00514.76
7.3.100.0050.00914.77
7.3.90.0110.00114.89
7.3.80.0030.00814.75
7.3.70.0080.00714.86
7.3.60.0080.00514.74
7.3.50.0030.01014.63
7.3.40.0060.00514.79
7.3.30.0060.00914.50
7.3.20.0080.00616.48
7.3.10.0040.00916.32
7.3.00.0050.01016.59
7.2.330.0100.00816.57
7.2.320.0060.01516.53
7.2.310.0070.01416.57
7.2.300.0100.00716.49
7.2.290.0030.01316.55
7.2.260.0070.01114.71
7.2.250.0080.01214.94
7.2.240.0060.00914.80
7.2.230.0070.00814.59
7.2.220.0020.00915.02
7.2.210.0090.00814.79
7.2.200.0030.01215.05
7.2.190.0030.01114.73
7.2.180.0080.00415.00
7.2.170.0070.00814.72
7.2.160.0050.00514.62
7.2.150.0080.00616.45
7.2.140.0050.00516.64
7.2.130.0040.00816.79
7.2.120.0060.00616.84
7.2.110.0110.00616.45
7.2.100.0120.00316.63
7.2.90.0040.00716.77
7.2.80.0030.01016.82
7.2.70.0060.00616.98
7.2.60.0060.00916.84
7.2.50.0000.00916.61
7.2.40.0030.00916.62
7.2.30.0070.00716.94
7.2.20.0000.01416.74
7.2.10.0060.00816.55
7.2.00.0060.00718.19
7.1.330.0060.00615.65
7.1.320.0110.00315.53
7.1.310.0120.00215.67
7.1.300.0060.00815.58
7.1.290.0050.01015.54
7.1.280.0030.00915.60
7.1.270.0010.01215.72
7.1.260.0030.01015.64
7.1.250.0060.00615.30
7.1.240.0100.00315.74
7.1.230.0080.00815.58
7.1.220.0120.00315.47
7.1.210.0000.00815.51
7.1.200.0050.00815.69
7.1.190.0060.00315.45
7.1.180.0070.00715.59
7.1.170.0060.00915.65
7.1.160.0090.00615.76
7.1.150.0070.00715.68
7.1.140.0070.00415.51
7.1.130.0060.00615.75
7.1.120.0040.01515.28
7.1.110.0060.00315.77
7.1.100.0030.00716.94
7.1.90.0000.01215.40
7.1.80.0090.00615.68
7.1.70.0070.00716.17
7.1.60.0060.00917.68
7.1.50.0070.01016.27
7.1.40.0000.01115.62
7.1.30.0040.00415.21
7.1.20.0030.01415.34
7.1.10.0030.01615.70
7.1.00.0050.04318.91
7.0.330.0030.00715.08
7.0.320.0040.01115.23
7.0.310.0080.00314.98
7.0.300.0040.00415.36
7.0.290.0030.01315.29
7.0.280.0060.00315.27
7.0.270.0070.00715.52
7.0.260.0070.00715.11
7.0.250.0000.01415.40
7.0.240.0050.00315.30
7.0.230.0060.00915.18
7.0.220.0030.01015.11
7.0.210.0080.00415.45
7.0.200.0020.00915.92
7.0.190.0030.00915.45
7.0.180.0060.00915.48
7.0.170.0040.00715.44
7.0.160.0000.00815.30
7.0.150.0000.01115.43
7.0.140.0090.00315.23
7.0.130.0030.01015.46
7.0.120.0110.00515.28
7.0.110.0000.01615.07
7.0.100.0040.01615.23
7.0.90.0480.00917.65
7.0.80.0470.00417.65
7.0.70.0610.00317.60
7.0.60.0550.00317.69
7.0.50.0530.00518.00
7.0.40.0450.00516.82
7.0.30.0500.00316.84
7.0.20.0550.00416.84
7.0.10.0500.00316.93
7.0.00.0490.00316.82
5.6.400.0060.00614.14
5.6.390.0030.00913.93
5.6.380.0070.00714.30
5.6.370.0070.00714.62
5.6.360.0080.00414.13
5.6.350.0100.00313.96
5.6.340.0040.00714.04
5.6.330.0000.01114.36
5.6.320.0030.00714.41
5.6.310.0070.00714.39
5.6.300.0040.01214.11
5.6.290.0130.00414.14
5.6.280.0120.00814.13
5.6.270.0050.00914.30
5.6.260.0070.01114.11
5.6.250.0120.00613.90
5.6.240.0470.00517.33
5.6.230.0390.00517.53
5.6.220.0410.00217.35
5.6.210.0480.00217.31
5.6.200.0500.00417.70
5.6.190.0380.00717.54
5.6.180.0420.00217.67
5.6.170.0360.00417.56
5.6.160.0520.00317.51
5.6.150.0360.00517.61
5.6.140.0400.00417.70
5.6.130.0520.00417.67
5.6.120.0500.00517.59
5.6.110.0510.00017.52
5.6.100.0420.00217.64
5.6.90.0390.00217.58
5.6.80.0410.00217.23
5.6.70.0360.00317.37
5.6.60.0350.00517.19
5.6.50.0370.00517.32
5.6.40.0350.00517.26
5.6.30.0330.00717.30
5.6.20.0380.00517.44
5.6.10.0380.00517.16
5.6.00.0400.00317.21

preferences:
56.1 ms | 401 KiB | 5 Q