3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "CN=van der Valk\, Marco,OU=UT,OU=NL,OU=EMEA,OU=associates,OU=usersAndGroups,DC=corporate,DC=ingrammicro,DC=com"; $CN = strpos($str, "CN=")+3; Echo substr($str, $CN, strpos($str, '\\', $CN)-3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5H26
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $CN
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'CN%3Dvan+der+Valk%5C%2C+Marco%2COU%3DUT%2COU%3DNL%2COU%3DEMEA%2COU%3Dassociates%2COU%3DusersAndGroups%2CDC%3Dcorporate%2CDC%3Dingrammicro%2CDC%3Dcom'
    4     1        FRAMELESS_ICALL_2                strpos              ~3      !0, 'CN%3D'
          2        ADD                                                  ~4      ~3, 3
          3        ASSIGN                                                       !1, ~4
    5     4        FRAMELESS_ICALL_3                strpos              ~6      !0, '%5C'
          5        OP_DATA                                                      !1
          6        SUB                                                  ~7      ~6, 3
          7        FRAMELESS_ICALL_3                substr              ~8      !0, !1
          8        OP_DATA                                                      ~7
          9        ECHO                                                         ~8
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
209.75 ms | 1983 KiB | 13 Q