3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dn = "CN=devops,OU=Groups,OU=US,DC=vice,DC=com;CN=WebDev,OU=GlobalGroups,DC=vice,DC=com;CN=UKOffice,OU=Groups,OU=UK,DC=vice,DC=com;CN=GoogleApps,OU=GlobalGroups,DC=vice,DC=com;CN=UKStaff,OU=Groups,OU=UK,DC=vice,DC=com"; echo substr($dn, (strlen($dn) - strpos(strrev($dn), strrev('OU='))), 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EqDgn
function name:  (null)
number of ops:  20
compiled vars:  !0 = $dn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'CN%3Ddevops%2COU%3DGroups%2COU%3DUS%2CDC%3Dvice%2CDC%3Dcom%3BCN%3DWebDev%2COU%3DGlobalGroups%2CDC%3Dvice%2CDC%3Dcom%3BCN%3DUKOffice%2COU%3DGroups%2COU%3DUK%2CDC%3Dvice%2CDC%3Dcom%3BCN%3DGoogleApps%2COU%3DGlobalGroups%2CDC%3Dvice%2CDC%3Dcom%3BCN%3DUKStaff%2COU%3DGroups%2COU%3DUK%2CDC%3Dvice%2CDC%3Dcom'
    5     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        STRLEN                                           ~2      !0
          4        INIT_FCALL                                               'strpos'
          5        INIT_FCALL                                               'strrev'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        INIT_FCALL                                               'strrev'
         10        SEND_VAL                                                 'OU%3D'
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        SUB                                              ~6      ~2, $5
         15        SEND_VAL                                                 ~6
         16        SEND_VAL                                                 2
         17        DO_ICALL                                         $7      
         18        ECHO                                                     $7
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.18 ms | 1395 KiB | 19 Q