3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match("/(T|[^{])+/", str_repeat('X', 1023).'{#test}', $matches)); var_dump(preg_match("/(T|[^{])+/", str_repeat('X', 1024).'{#test}', $matches));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h0Hf6
function name:  (null)
number of ops:  27
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%28T%7C%5B%5E%7B%5D%29%2B%2F'
          3        INIT_FCALL                                               'str_repeat'
          4        SEND_VAL                                                 'X'
          5        SEND_VAL                                                 1023
          6        DO_ICALL                                         $1      
          7        CONCAT                                           ~2      $1, '%7B%23test%7D'
          8        SEND_VAL                                                 ~2
          9        SEND_REF                                                 !0
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
    4    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'preg_match'
         15        SEND_VAL                                                 '%2F%28T%7C%5B%5E%7B%5D%29%2B%2F'
         16        INIT_FCALL                                               'str_repeat'
         17        SEND_VAL                                                 'X'
         18        SEND_VAL                                                 1024
         19        DO_ICALL                                         $5      
         20        CONCAT                                           ~6      $5, '%7B%23test%7D'
         21        SEND_VAL                                                 ~6
         22        SEND_REF                                                 !0
         23        DO_ICALL                                         $7      
         24        SEND_VAR                                                 $7
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.86 ms | 1395 KiB | 19 Q