3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '# \w*?[aeiou]{2}\w*? #'; $string = "There's a moose loose this house"; $matches = array(); preg_match_all($pattern, $string, $matches); var_dump($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IX4Uv
function name:  (null)
number of ops:  13
compiled vars:  !0 = $pattern, !1 = $string, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%23+%5Cw%2A%3F%5Baeiou%5D%7B2%7D%5Cw%2A%3F+%23'
    4     1        ASSIGN                                                   !1, 'There%27s+a+moose+loose+this+house'
    5     2        ASSIGN                                                   !2, <array>
    6     3        INIT_FCALL                                               'preg_match_all'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !2
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'var_dump'
          9        FETCH_DIM_R                                      ~7      !2, 0
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.66 ms | 1398 KiB | 17 Q