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_all('/'.$r.'/m', $text, $m); var_dump($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8hFYN
function name:  (null)
number of ops:  17
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'
    4     1        ASSIGN                                                   !1, '%23%28%5B%5E%23%5D%29%2B%23'
    5     2        ASSIGN                                                   !1, '%23%5B%28%3F%3Cname%3E%5CS%2B%29%5C%5D%23'
    6     3        ASSIGN                                                   !1, '%23.%2B%3F%23'
    7     4        ASSIGN                                                   !1, '%23%28.%2B%3F%29%23'
    8     5        ASSIGN                                                   !1, '%23%5Cw%2A%23'
   10     6        INIT_FCALL                                               'preg_match_all'
          7        CONCAT                                           ~9      '%2F', !1
          8        CONCAT                                           ~10     ~9, '%2Fm'
          9        SEND_VAL                                                 ~10
         10        SEND_VAR                                                 !0
         11        SEND_REF                                                 !2
         12        DO_ICALL                                                 
   11    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.16 ms | 1386 KiB | 17 Q