3v4l.org

run code in 300+ PHP versions simultaneously
<?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));

preferences:
57.54 ms | 402 KiB | 5 Q