3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('%\A(?:(19|20)[0-9]{2}[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01]))\Z%', "asdf")); var_dump(preg_match('%\A(?:(19|20)[0-9]{2}[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01]))\Z%', "2013-01-01"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/adSq7
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%25%5CA%28%3F%3A%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%29%5CZ%25'
          3        SEND_VAL                                                 'asdf'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    3     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%25%5CA%28%3F%3A%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%29%5CZ%25'
         10        SEND_VAL                                                 '2013-01-01'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.67 ms | 1394 KiB | 17 Q