protected function requiresEmulation($code)
{
if (version_compare(PHP_VERSION, self::PHP_7_0, '>=')) {
return false;
}
if (preg_match('(\\?\\?|<=>|yield[ \\n\\r\\t]+from)', $code)) {
return true;
}
if (version_compare(PHP_VERSION, self::PHP_5_6, '>=')) {
return false;
}
return preg_match('(\\.\\.\\.|(?<!/)\\*\\*(?!/))', $code);
}