3v4l.org

run code in 300+ PHP versions simultaneously
<?php $baseDN = "dc=challenge01,dc=root-me,dc=org"; $ldapServer = "challenge01.root-me.org"; $ldapServerPort = 54013; $rdn="admin"; $mdp="%00"; $dn = 'dc=challenge01,dc=root-me,dc=org'; echo "Connexion au serveur"; $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"); ?>
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Connexion au serveur Fatal error: Uncaught Error: Call to undefined function ldap_connect() in /in/eJsj7:10 Stack trace: #0 {main} thrown in /in/eJsj7 on line 10
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Connexion au serveur Fatal error: Call to undefined function ldap_connect() in /in/eJsj7 on line 10
Process exited with code 255.

preferences:
255.3 ms | 402 KiB | 329 Q