3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "You can use any regular expression pression inside the lookahead "; if (preg_match('~^(.*?\w\W+)pression(\W+\w.*)$~is', $text, $m)) { echo $m[1] . " << | >> " . $m[2]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/ICr63
function name:  (null)
number of ops:  13
compiled vars:  !0 = $text, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'You+can+use+any+regular+expression+pression+inside+the+lookahead+'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%5E%28.%2A%3F%5Cw%5CW%2B%29pression%28%5CW%2B%5Cw.%2A%29%24%7Eis'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->12
    5     7    >   FETCH_DIM_R                                      ~4      !1, 1
          8        CONCAT                                           ~5      ~4, '+%3C%3C+%7C+%3E%3E+'
          9        FETCH_DIM_R                                      ~6      !1, 2
         10        CONCAT                                           ~7      ~5, ~6
         11        ECHO                                                     ~7
    6    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.67 ms | 1394 KiB | 15 Q