3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Eléments d'authentification LDAP $ldaprdn = 'admin'; // DN ou RDN LDAP $ldappass = '%00'; // Mot de passe associé // Connexion au serveur LDAP $ldapconn = ldap_connect("challenge01.root-me.org",54013) or die("Impossible de se connecter au serveur LDAP."); if ($ldapconn) { // Connexion au serveur LDAP $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); // Vérification de l'authentification if ($ldapbind) { echo "Connexion LDAP réussie..."; } else { echo "Connexion LDAP échouée..."; } } ?>
based on 0A1tF

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0000.01316.43
7.2.00.0070.00719.41
7.1.200.0030.00915.56
7.1.100.0060.00918.08
7.1.70.0000.00817.16
7.1.60.0200.00319.27
7.1.50.0090.01216.74
7.1.00.0030.09022.51
7.0.200.0040.00416.32
7.0.60.0070.08321.76
7.0.50.0070.04017.89
7.0.40.0030.04320.05
7.0.30.0200.04320.02
7.0.20.0230.06020.00
7.0.10.0070.08320.00
7.0.00.0100.05020.16
5.6.280.0070.02721.07
5.6.210.0030.04020.71
5.6.200.0100.06718.23
5.6.190.0130.08020.41
5.6.180.0270.04320.77
5.6.170.0370.04320.47
5.6.160.0100.08320.48
5.6.150.0030.08018.11
5.6.140.0030.08018.18
5.6.130.0030.07018.13
5.6.120.0100.08021.14
5.6.110.0000.04320.97
5.6.100.0070.03721.11
5.6.90.0100.07720.98
5.6.80.0070.03320.38
5.5.350.0100.08020.38
5.5.340.0030.05318.01
5.5.330.0000.05320.40
5.5.320.0270.05320.28
5.5.310.0230.03720.34
5.5.300.0100.04717.88
5.5.290.0070.08017.98
5.5.280.0070.08320.79
5.5.270.0030.08320.63
5.5.260.0170.07320.84
5.5.250.0130.03320.70
5.5.240.0130.08020.18
5.4.450.0900.05719.56
5.4.440.0530.05719.64
5.4.430.0630.04719.64
5.4.420.0570.06319.17
5.4.410.0600.05719.45
5.4.400.0570.05319.13
5.4.390.0700.06319.26
5.4.380.0530.07019.10
5.4.370.0800.04319.15
5.4.360.1100.06019.09
5.4.350.0570.06319.15
5.4.340.0700.05718.85
5.4.320.0800.05319.15
5.4.310.0700.05019.09
5.4.300.0130.06319.21
5.4.290.0530.05719.14
5.4.280.0600.05319.22
5.4.270.0570.06319.19
5.4.260.0570.05718.86
5.4.250.0870.05018.86
5.4.240.0230.05719.22
5.4.230.0230.05319.14
5.4.220.0270.05319.07
5.4.210.0270.05019.25
5.4.200.0500.05318.84
5.4.190.0230.06719.11
5.4.180.0530.04719.31
5.4.170.0700.05019.23
5.4.160.0970.06019.20
5.4.150.1030.06019.14
5.4.140.0870.06016.37
5.4.130.0600.04716.11
5.4.120.0330.05716.37
5.4.110.1000.06716.13
5.4.100.0800.05716.29
5.3.290.0730.04314.55
5.3.280.0330.04714.49
5.3.270.0730.05014.39
5.3.260.0870.04314.51
5.3.250.1200.04314.36
5.3.240.0870.05014.58
5.3.230.0330.06314.52
5.3.220.0870.06014.58
5.3.210.0900.06314.49
5.3.200.0730.05714.66