Attempting (and failing) to use preg_replace_callback