<?php
echo preg_match('/.*a/', str_repeat('z', 1000000000));