3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'December 2012 Name: Jack Brown'; $ptr = "/^(?P<month>:Jan(?:uary)?|Feb(?:ruary)?|Dec(?:ember)?) (?P<year>:19[7-9]\d|2\d{3})/"; preg_match($ptr, $str, $data); echo $data['month'].' '.$data['year'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W15a6
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $ptr, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'December+2012+Name%3A+Jack+Brown'
    3     1        ASSIGN                                                   !1, '%2F%5E%28%3FP%3Cmonth%3E%3AJan%28%3F%3Auary%29%3F%7CFeb%28%3F%3Aruary%29%3F%7CDec%28%3F%3Aember%29%3F%29+%28%3FP%3Cyear%3E%3A19%5B7-9%5D%5Cd%7C2%5Cd%7B3%7D%29%2F'
    4     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        FETCH_DIM_R                                      ~6      !2, 'month'
          8        CONCAT                                           ~7      ~6, '+'
          9        FETCH_DIM_R                                      ~8      !2, 'year'
         10        CONCAT                                           ~9      ~7, ~8
         11        ECHO                                                     ~9
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.69 ms | 1394 KiB | 15 Q