3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_date = '1912-12-22'; if(!preg_match("d{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[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/UQCC4
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, '1912-12-22'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 'd%7B4%7D-%280%5B1-9%5D%7C1%5B012%5D%29-%280%5B1-9%5D%7C1%5B0-9%5D%7C2%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:
153.31 ms | 1394 KiB | 15 Q