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="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"); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/8MfKp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $baseDN, !1 = $ldapServer, !2 = $ldapServerPort, !3 = $rdn, !4 = $mdp, !5 = $dn, !6 = $conn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'dc%3Dchallenge01%2Cdc%3Droot-me%2Cdc%3Dorg'
    3     1        ASSIGN                                                   !1, 'challenge01.root-me.org'
    4     2        ASSIGN                                                   !2, 54013
    5     3        ASSIGN                                                   !3, 'admin'
    6     4        ASSIGN                                                   !4, 'secret'
    7     5        ASSIGN                                                   !5, 'cn%3Dmanager%2Cdc%3Dchallenge01%2Cdc%3Droot-me%2Cdc%3Dorg'
    9     6        ECHO                                                     'Connexion+au+serveur+%3Cbr+%2F%3E'
   10     7        INIT_FCALL_BY_NAME                                       'ldap_connect'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $13     
         10        ASSIGN                                                   !6, $13
   13    11      > JMPZ                                                     !6, ->16
   14    12    >   CONCAT                                           ~15     'Le+r%C3%A9sultat+de+connexion+est+', !6
         13        CONCAT                                           ~16     ~15, '%3Cbr+%2F%3E'
         14        ECHO                                                     ~16
         15      > JMP                                                      ->17
   16    16    > > EXIT                                                     'connexion+impossible+au+serveur+LDAP'
   17    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.21 ms | 939 KiB | 14 Q