3v4l.org

run code in 300+ PHP versions simultaneously
<?php $toks = [ '(?=\D*\d)', '\b(waiting)\b', '^(\w+)', '\b(response)\b', '\b(from)\b', '\|', '\b(to)\b', ]; $patterns_flattened = implode('|', $toks); if (preg_match_all("/$patterns_flattened/i", "I'm waiting for a response from", $matches)) { print_r($matches[0]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/Gq8XG
function name:  (null)
number of ops:  20
compiled vars:  !0 = $toks, !1 = $patterns_flattened, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%7C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   14     6        INIT_FCALL                                               'preg_match_all'
          7        ROPE_INIT                                     3  ~7      '%2F'
          8        ROPE_ADD                                      1  ~7      ~7, !1
          9        ROPE_END                                      2  ~6      ~7, '%2Fi'
         10        SEND_VAL                                                 ~6
         11        SEND_VAL                                                 'I%27m+waiting+for+a+response+from'
         12        SEND_REF                                                 !2
         13        DO_ICALL                                         $9      
         14      > JMPZ                                                     $9, ->19
   15    15    >   INIT_FCALL                                               'print_r'
         16        FETCH_DIM_R                                      ~10     !2, 0
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                                 
   16    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.87 ms | 1395 KiB | 19 Q