3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( preg_match_all('/\/social\/add-activity\/(?P<type>\w+)\/(?P<id>\d+)/', '/social/add-activity/history/1783', $matches), $matches );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JjokG
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                                               'var_dump'
    3     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5C%2Fsocial%5C%2Fadd-activity%5C%2F%28%3FP%3Ctype%3E%5Cw%2B%29%5C%2F%28%3FP%3Cid%3E%5Cd%2B%29%2F'
          3        SEND_VAL                                                 '%2Fsocial%2Fadd-activity%2Fhistory%2F1783'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
    4     7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    5     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.76 ms | 1394 KiB | 17 Q