3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_date = '19122/12/22'; if(!preg_match('(19|20)[0-9]{2}[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])',$input_date, $aux_date)) echo 'match';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/N7sWV
function name:  (null)
number of ops:  10
compiled vars:  !0 = $input_date, !1 = $aux_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '19122%2F12%2F22'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2819%7C20%29%5B0-9%5D%7B2%7D%5B-+%2F.%5D%280%5B1-9%5D%7C1%5B012%5D%29%5B-+%2F.%5D%280%5B1-9%5D%7C%5B12%5D%5B0-9%5D%7C3%5B01%5D%29'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6        BOOL_NOT                                         ~4      $3
          7      > JMPZ                                                     ~4, ->9
    4     8    >   ECHO                                                     'match'
          9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.05 ms | 1394 KiB | 15 Q