3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_date = '22/12/1231'; if(!preg_match('/(?P<d>\d{2})(?P<sep>\D)(?P<m>\d{2})\2(?P<y>\d{4})/',$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/cl1jj
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, '22%2F12%2F1231'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%3FP%3Cd%3E%5Cd%7B2%7D%29%28%3FP%3Csep%3E%5CD%29%28%3FP%3Cm%3E%5Cd%7B2%7D%29%5C2%28%3FP%3Cy%3E%5Cd%7B4%7D%29%2F'
          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:
155.28 ms | 1394 KiB | 15 Q