3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ldapserach($group); foreach ($data[0]["member"] as $key => $member) { if (is_int($key)) { $SupPullUser[] = explode('=', explode(',', $member)[0])[1] . PHP_EOL; } } array_multisort($SupPullUser, SORT_ASC); foreach($SupPullUser as $key => $SortPullUser) { $ldaptree = "CN=Users,DC=DOMAIN,DC=NET"; $ldapConn = ldap_connect($host) or die("Disconnect"); $ldapBind = ldap_bind($ldapConn, $username, $password) or die("Could Not Bind"); $filter = "(samaccountname=".$_COOKIE['Username'].")"; $attr = array("displayName"); $result = ldap_search($host,$ldaptree, $filter,$attra); $data = ldap_get_entries($ldapConn, $result); $displayName = $data[0]['displayname'][0]; ldap_close($ldapConn); if ($SortPullUser == $displayName) { Echo "Yes"; } else { Echo "No"; } }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function ldapserach() in /in/1Wsge:2 Stack trace: #0 {main} thrown in /in/1Wsge on line 2
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.49 ms | 1524 KiB | 4 Q