3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pat = ',(?P<controller>[[:alnum:]]+)/(?P<action>[[:alnum:]]+)/(?P<$1>[[:alnum:]]+),'; $str = 'controller1/action1/fff'; preg_match($pat, $str, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iDehX
function name:  (null)
number of ops:  11
compiled vars:  !0 = $pat, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2C%28%3FP%3Ccontroller%3E%5B%5B%3Aalnum%3A%5D%5D%2B%29%2F%28%3FP%3Caction%3E%5B%5B%3Aalnum%3A%5D%5D%2B%29%2F%28%3FP%3C%241%3E%5B%5B%3Aalnum%3A%5D%5D%2B%29%2C'
    4     1        ASSIGN                                                   !1, 'controller1%2Faction1%2Ffff'
    6     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.99 ms | 1385 KiB | 17 Q