3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $baseDN = "dc=challenge01,dc=root-me,dc=org"; $ldapServer = "challenge01.root-me.org"; $ldapServerPort = 54013; $rdn="admin"; $mdp="secret"; $dn = 'cn=manager,dc=challenge01,dc=root-me,dc=org'; echo "Connexion au serveur <br />"; $conn=ldap_connect($ldapServer); // on teste : le serveur LDAP est-il trouvé ? if ($conn) echo "Le résultat de connexion est ".$conn ."<br />"; else die("connexion impossible au serveur LDAP"); ?>
based on iFb7d
Output for 7.0.0 - 7.2.0
Connexion au serveur <br /> Fatal error: Uncaught Error: Call to undefined function ldap_connect() in /in/8MfKp:10 Stack trace: #0 {main} thrown in /in/8MfKp on line 10
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Connexion au serveur <br /> Fatal error: Call to undefined function ldap_connect() in /in/8MfKp on line 10
Process exited with code 255.