3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\b(?:Interesting Character #\d+:|Their Best Movie:)\h+\K.+/'; $str = 'April 01 2020 Key Information Read :: Interesting Character #1: Kermit the Frog April 01 2020 Key Information Read :: Interesting Character #2: Miss Piggy April 01 2020 Key Information Read :: Their Best Movie: The Muppet Movie (1979) '; 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/JvrcR
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%28%3F%3AInteresting+Character+%23%5Cd%2B%3A%7CTheir+Best+Movie%3A%29%5Ch%2B%5CK.%2B%2F'
    4     1        ASSIGN                                                   !1, 'April+01+2020+Key+Information+Read+%3A%3A+Interesting+Character+%231%3A++Kermit+the+Frog%0AApril+01+2020+Key+Information+Read+%3A%3A+Interesting+Character+%232%3A++Miss+Piggy%0AApril+01+2020+Key+Information+Read+%3A%3A+Their+Best+Movie%3A++The+Muppet+Movie+%281979%29%0A'
    9     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   10     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:
155.27 ms | 1005 KiB | 15 Q