- var_dump: documentation ( source)
- str_repeat: documentation ( source)
- preg_match: documentation ( source)
- ini_set: documentation ( source)
<?php
ini_set('pcre.jit', 1);
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));