3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match("/((X))+/", str_repeat('X', 1023), $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/1u4ga
function name:  (null)
number of ops:  25
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        INIT_FCALL                                               'str_repeat'
          4        SEND_VAL                                                 'X'
          5        SEND_VAL                                                 1023
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        SEND_REF                                                 !0
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    4    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'preg_match'
         14        SEND_VAL                                                 '%2F%28%28X%29%29%2B%2F'
         15        INIT_FCALL                                               'str_repeat'
         16        SEND_VAL                                                 'X'
         17        SEND_VAL                                                 1024
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
         20        SEND_REF                                                 !0
         21        DO_ICALL                                         $5      
         22        SEND_VAR                                                 $5
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.46 ms | 1395 KiB | 19 Q