3v4l.org

run code in 500+ PHP versions simultaneously
<?php mb_regex_encoding("UTF-8"); mb_ereg('(?<year>\d+)-(?<month>\d+)-(?<day>\d+)', '2018-12-31', $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/45KPM
function name:  (null)
number of ops:  12
compiled vars:  !0 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'mb_regex_encoding'
          1        SEND_VAL                                                     'UTF-8'
          2        DO_ICALL                                                     
    3     3        INIT_FCALL                                                   'mb_ereg'
          4        SEND_VAL                                                     '%28%3F%3Cyear%3E%5Cd%2B%29-%28%3F%3Cmonth%3E%5Cd%2B%29-%28%3F%3Cday%3E%5Cd%2B%29'
          5        SEND_VAL                                                     '2018-12-31'
          6        SEND_REF                                                     !0
          7        DO_ICALL                                                     
    4     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.31 ms | 478 KiB | 10 Q