3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match("/((X))+/", 'X', $matches)); var_dump(preg_match("/((X))+/", str_repeat('X', 1024), $matches));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QEl7P
function name:  (null)
number of ops:  21
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%28X%29%29%2B%2F'
          3        SEND_VAL                                                 'X'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%2F%28%28X%29%29%2B%2F'
         11        INIT_FCALL                                               'str_repeat'
         12        SEND_VAL                                                 'X'
         13        SEND_VAL                                                 1024
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        SEND_REF                                                 !0
         17        DO_ICALL                                         $4      
         18        SEND_VAR                                                 $4
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.28 ms | 1399 KiB | 19 Q