3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = 'CN=Andrzej Wyrzykowski,OU=ZarzadUsers,OU=Zarzad,OU=Babka,DC=lekam,DC=pl'; $dane = arrray(); if (preg_match('/CN=(?<imienazwisko>.*),/', $t, $dane)) { var_dump($dane); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/Cbvau
function name:  (null)
number of ops:  14
compiled vars:  !0 = $t, !1 = $dane
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'CN%3DAndrzej+Wyrzykowski%2COU%3DZarzadUsers%2COU%3DZarzad%2COU%3DBabka%2CDC%3Dlekam%2CDC%3Dpl'
    4     1        INIT_FCALL_BY_NAME                                       'arrray'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !1, $3
    5     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%2FCN%3D%28%3F%3Cimienazwisko%3E.%2A%29%2C%2F'
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $5      
          9      > JMPZ                                                     $5, ->13
    7    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.94 ms | 1398 KiB | 17 Q