- var_dump: documentation ( source)
- str_repeat: documentation ( source)
- preg_match: documentation ( source)
<?php
var_dump(preg_match("/(T|[^{])+/", str_repeat('X', 1023).'{#test}', $matches));
var_dump(preg_match("/(T|[^{])+/", str_repeat('X', 1024).'{#test}', $matches));