3v4l.org

run code in 500+ PHP versions simultaneously
<?php $regex= '#Schedule a (?<scheduletype>\w+)\swith\s(?<person>\w+)\sat\s(?<time>\w+)#'; preg_match($regex, 'Schedule a meeting with Ann at 3pm', $matches); echo $matches['scheduletype']."\n"; echo $matches['person']."\n"; echo $matches['time']."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OBOnY
function name:  (null)
number of ops:  16
compiled vars:  !0 = $regex, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%23Schedule+a+%28%3F%3Cscheduletype%3E%5Cw%2B%29%5Cswith%5Cs%28%3F%3Cperson%3E%5Cw%2B%29%5Csat%5Cs%28%3F%3Ctime%3E%5Cw%2B%29%23'
    4     1        INIT_FCALL                                                   'preg_match'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     'Schedule+a+meeting+with+Ann+at+3pm'
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    5     6        FETCH_DIM_R                                          ~4      !1, 'scheduletype'
          7        CONCAT                                               ~5      ~4, '%0A'
          8        ECHO                                                         ~5
    6     9        FETCH_DIM_R                                          ~6      !1, 'person'
         10        CONCAT                                               ~7      ~6, '%0A'
         11        ECHO                                                         ~7
    7    12        FETCH_DIM_R                                          ~8      !1, 'time'
         13        CONCAT                                               ~9      ~8, '%0A'
         14        ECHO                                                         ~9
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.14 ms | 2242 KiB | 14 Q