3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '1-2 дня 4-5дня 1день 8дней'; preg_match_all('/([\d+-]+)\s*д(?:ень|ня|ней)/', $string, $matches); print_r($matches[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2liJF
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '1-2+%D0%B4%D0%BD%D1%8F%0A4-5%D0%B4%D0%BD%D1%8F%0A1%D0%B4%D0%B5%D0%BD%D1%8C%0A8%D0%B4%D0%BD%D0%B5%D0%B9'
    8     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%2F%28%5B%5Cd%2B-%5D%2B%29%5Cs%2A%D0%B4%28%3F%3A%D0%B5%D0%BD%D1%8C%7C%D0%BD%D1%8F%7C%D0%BD%D0%B5%D0%B9%29%2F'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    9     6        INIT_FCALL                                                   'print_r'
          7        FETCH_DIM_R                                          ~4      !1, 1
          8        SEND_VAL                                                     ~4
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
223.4 ms | 1537 KiB | 10 Q