3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('pcre.jit', 0); var_dump(preg_match("/(T|X)+/", str_repeat('X', 1023), $matches)); var_dump(preg_match("/(T|X)+/", str_repeat('X', 1024), $matches)); ini_set('pcre.jit', 0); var_dump(preg_match("/(T|X)+/", str_repeat('X', 1023), $matches)); var_dump(preg_match("/(T|X)+/", str_repeat('X', 1024), $matches));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6vcBO
function name:  (null)
number of ops:  57
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'pcre.jit'
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%28T%7CX%29%2B%2F'
          7        INIT_FCALL                                               'str_repeat'
          8        SEND_VAL                                                 'X'
          9        SEND_VAL                                                 1023
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        SEND_REF                                                 !0
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'preg_match'
         18        SEND_VAL                                                 '%2F%28T%7CX%29%2B%2F'
         19        INIT_FCALL                                               'str_repeat'
         20        SEND_VAL                                                 'X'
         21        SEND_VAL                                                 1024
         22        DO_ICALL                                         $5      
         23        SEND_VAR                                                 $5
         24        SEND_REF                                                 !0
         25        DO_ICALL                                         $6      
         26        SEND_VAR                                                 $6
         27        DO_ICALL                                                 
    8    28        INIT_FCALL                                               'ini_set'
         29        SEND_VAL                                                 'pcre.jit'
         30        SEND_VAL                                                 0
         31        DO_ICALL                                                 
   10    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'preg_match'
         34        SEND_VAL                                                 '%2F%28T%7CX%29%2B%2F'
         35        INIT_FCALL                                               'str_repeat'
         36        SEND_VAL                                                 'X'
         37        SEND_VAL                                                 1023
         38        DO_ICALL                                         $9      
         39        SEND_VAR                                                 $9
         40        SEND_REF                                                 !0
         41        DO_ICALL                                         $10     
         42        SEND_VAR                                                 $10
         43        DO_ICALL                                                 
   11    44        INIT_FCALL                                               'var_dump'
         45        INIT_FCALL                                               'preg_match'
         46        SEND_VAL                                                 '%2F%28T%7CX%29%2B%2F'
         47        INIT_FCALL                                               'str_repeat'
         48        SEND_VAL                                                 'X'
         49        SEND_VAL                                                 1024
         50        DO_ICALL                                         $12     
         51        SEND_VAR                                                 $12
         52        SEND_REF                                                 !0
         53        DO_ICALL                                         $13     
         54        SEND_VAR                                                 $13
         55        DO_ICALL                                                 
         56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.6 ms | 1400 KiB | 21 Q