3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?:\?|\G(?!^))\K\.[a-zA-Z]+/'; $str = 'othertext ?.abc.de.fgh.i moretext'; preg_match_all($re, $str, $matches); var_dump($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QKZm4
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%3F%7C%5CG%28%3F%21%5E%29%29%5CK%5C.%5Ba-zA-Z%5D%2B%2F'
    4     1        ASSIGN                                                   !1, 'othertext+%3F.abc.de.fgh.i+moretext'
    6     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_dump'
          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:
357.48 ms | 1005 KiB | 15 Q