3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\b\d{1,2}(?:\.\d{1,2}\.|\h+\p{Lu}\p{Ll}+\h+)(?:\d\d|\d{4})\b/u'; $str = '01.01.2022 1.01.2022 1.1.2022 1.1.22 ... Now I have a date format like this: 25 März 2023 or 25 March 2023'; preg_match_all($re, $str, $matches); print_r($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Waoir
function name:  (null)
number of ops:  12
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5Cb%5Cd%7B1%2C2%7D%28%3F%3A%5C.%5Cd%7B1%2C2%7D%5C.%7C%5Ch%2B%5Cp%7BLu%7D%5Cp%7BLl%7D%2B%5Ch%2B%29%28%3F%3A%5Cd%5Cd%7C%5Cd%7B4%7D%29%5Cb%2Fu'
    4     1        ASSIGN                                                   !1, '01.01.2022%0A1.01.2022%0A1.1.2022%0A1.1.22%0A...%0ANow+I+have+a+date+format+like+this%3A%0A%0A25+M%C3%A4rz+2023%0Aor%0A25+March+2023'
   15     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   16     7        INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~6      !2, 0
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.02 ms | 1069 KiB | 15 Q