3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'My Name is #P_NAME# and \r\n I am #P_AGE# years old'; //$r = '#[^#]+#'; $r = '#[(?<name>\S+)\]#'; $r = '#.+?#'; $r = '#(.+?)#'; $r = '#\w*#'; preg_match($r, $text, $m); var_dump($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Io6W1
function name:  (null)
number of ops:  14
compiled vars:  !0 = $text, !1 = $r, !2 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'My+Name+is+%23P_NAME%23+and+%5Cr%5Cn+I+am+%23P_AGE%23+years+old'
    5     1        ASSIGN                                                   !1, '%23%5B%28%3F%3Cname%3E%5CS%2B%29%5C%5D%23'
    6     2        ASSIGN                                                   !1, '%23.%2B%3F%23'
    7     3        ASSIGN                                                   !1, '%23%28.%2B%3F%29%23'
    8     4        ASSIGN                                                   !1, '%23%5Cw%2A%23'
   12     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !0
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
   14    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.7 ms | 1394 KiB | 17 Q