- chr: documentation ( source)
- preg_match_all: documentation ( source)
- rand: documentation ( source)
<?php
$string = '';
for ($i = 0; $i < 10000; $i++) {
$string .= chr(rand(65, 122));
}
echo "Calling preg_match_all()\n";
preg_match_all('/(\D|3)*/', $string, $matches);
echo "It didn't broke php\n";