3v4l.org

run code in 500+ PHP versions simultaneously
<?php preg_match('#^/ut/(?P<controller>[\w]+)/(?P<method>[\w]+)/(?P<id>[\d]+)$#i', '/ut/User/getUser/1', $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rba5i
function name:  (null)
number of ops:  9
compiled vars:  !0 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'preg_match'
          1        SEND_VAL                                                     '%23%5E%2Fut%2F%28%3FP%3Ccontroller%3E%5B%5Cw%5D%2B%29%2F%28%3FP%3Cmethod%3E%5B%5Cw%5D%2B%29%2F%28%3FP%3Cid%3E%5B%5Cd%5D%2B%29%24%23i'
          2        SEND_VAL                                                     '%2Fut%2FUser%2FgetUser%2F1'
          3        SEND_REF                                                     !0
          4        DO_ICALL                                                     
    5     5        INIT_FCALL                                                   'var_dump'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.61 ms | 2678 KiB | 14 Q