3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'WINNER_NIGHT_BLOCKS_COMBINATION : {2014-09-06,2014-09-13,2014-09-15,2014-09-17,2014-09-19,2014-09-21,2014-09-23,2014-09-25,2014-09-27}'; $matches = array(); if (preg_match('/^WINNER_NIGHT_BLOCKS_COMBINATION : \{(.*)\}$', $str, $matches)) { print_r($matches); } else { echo "don't match!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HPSQj
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'WINNER_NIGHT_BLOCKS_COMBINATION+%3A+%7B2014-09-06%2C2014-09-13%2C2014-09-15%2C2014-09-17%2C2014-09-19%2C2014-09-21%2C2014-09-23%2C2014-09-25%2C2014-09-27%7D'
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%5EWINNER_NIGHT_BLOCKS_COMBINATION+%3A+%5C%7B%28.%2A%29%5C%7D%24'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $4      
          7      > JMPZ                                                     $4, ->12
    6     8    >   INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > JMP                                                      ->13
    8    12    >   ECHO                                                     'don%27t+match%21'
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.8 ms | 1394 KiB | 17 Q