- var_dump: documentation ( source)
- str_repeat: documentation ( source)
- preg_match: documentation ( source)
<?php
var_dump(preg_match("/(T|X)+/", str_repeat('X', 1023).'Z', $matches));
var_dump(preg_match("/(T|X)+/", str_repeat('X', 1024).'Z', $matches));