3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?:\[\[delay-\d+]])?[\w \\\\,?!.@#$%^&*()|`[\]~\-=\'\"{}]+?(?=\[\[delay-\d+]]|$)/'; $str = 'Welcome! [[delay-2]]Do you have some questions fo[r us?[[delay-1]] Please fill input field!'; 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/sUapK
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%28%3F%3A%5C%5B%5C%5Bdelay-%5Cd%2B%5D%5D%29%3F%5B%5Cw+%5C%5C%2C%3F%21.%40%23%24%25%5E%26%2A%28%29%7C%60%5B%5C%5D%7E%5C-%3D%27%5C%22%7B%7D%5D%2B%3F%28%3F%3D%5C%5B%5C%5Bdelay-%5Cd%2B%5D%5D%7C%24%29%2F'
    4     1        ASSIGN                                                   !1, 'Welcome%21+%5B%5Bdelay-2%5D%5DDo+you+have+some+questions+fo%5Br+us%3F%5B%5Bdelay-1%5D%5D+Please+fill+input+field%21'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    8     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:
157.82 ms | 1010 KiB | 15 Q