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