3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'aaaaabbbcccccccccdddee'; var_export(preg_match_all('/(?:(.)\1{3,}(*SKIP)(*F)|(.)\2{2})/', $string, $m) ? $m[0] : 'no matches');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nUnAH
function name:  (null)
number of ops:  15
compiled vars:  !0 = $string, !1 = $m
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'aaaaabbbcccccccccdddee'
    4     1        INIT_FCALL                                                   'var_export'
          2        INIT_FCALL                                                   'preg_match_all'
          3        SEND_VAL                                                     '%2F%28%3F%3A%28.%29%5C1%7B3%2C%7D%28%2ASKIP%29%28%2AF%29%7C%28.%29%5C2%7B2%7D%29%2F'
          4        SEND_VAR                                                     !0
          5        SEND_REF                                                     !1
          6        DO_ICALL                                             $3      
          7      > JMPZ                                                         $3, ->11
          8    >   FETCH_DIM_R                                          ~4      !1, 0
          9        QM_ASSIGN                                            ~5      ~4
         10      > JMP                                                          ->12
         11    >   QM_ASSIGN                                            ~5      'no+matches'
         12    >   SEND_VAL                                                     ~5
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.64 ms | 1857 KiB | 15 Q