3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/^\/validation\/(?P<user_name>.*)?\/(?P<user_key>.*)?\/$/', "/validation/a%a/1/",$matches); print_r($matches); echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bf7Ij
function name:  (null)
number of ops:  10
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5E%5C%2Fvalidation%5C%2F%28%3FP%3Cuser_name%3E.%2A%29%3F%5C%2F%28%3FP%3Cuser_key%3E.%2A%29%3F%5C%2F%24%2F'
          2        SEND_VAL                                                 '%2Fvalidation%2Fa%25a%2F1%2F'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    4     8        ECHO                                                     '%0A'
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.23 ms | 1385 KiB | 17 Q