3v4l.org

run code in 500+ PHP versions simultaneously
<?php $regex = '#([a-zA-z ])\1{2,}$#'; $string = 'rrrr'; preg_match($regex, $string, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9MFvm
function name:  (null)
number of ops:  11
compiled vars:  !0 = $regex, !1 = $string, !2 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%23%28%5Ba-zA-z+%5D%29%5C1%7B2%2C%7D%24%23'
    4     1        ASSIGN                                                       !1, 'rrrr'
    5     2        INIT_FCALL                                                   'preg_match'
          3        SEND_VAR                                                     !0
          4        SEND_VAR                                                     !1
          5        SEND_REF                                                     !2
          6        DO_ICALL                                                     
    6     7        INIT_FCALL                                                   'var_dump'
          8        SEND_VAR                                                     !2
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.33 ms | 2063 KiB | 15 Q