3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/.*('.date('y').'|'.(date('y') + 1).')@fms.edu$/'; echo $regex; var_dump(preg_match($regex, 'ashwin14@fms.edu'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NiJcl
function name:  (null)
number of ops:  21
compiled vars:  !0 = $regex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'y'
          2        DO_ICALL                                         $1      
          3        CONCAT                                           ~2      '%2F.%2A%28', $1
          4        CONCAT                                           ~3      ~2, '%7C'
          5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'y'
          7        DO_ICALL                                         $4      
          8        ADD                                              ~5      $4, 1
          9        CONCAT                                           ~6      ~3, ~5
         10        CONCAT                                           ~7      ~6, '%29%40fms.edu%24%2F'
         11        ASSIGN                                                   !0, ~7
    4    12        ECHO                                                     !0
    5    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'preg_match'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 'ashwin14%40fms.edu'
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.72 ms | 1395 KiB | 19 Q