For the 2021 hack the box cyberpocalypse ctf, there was a web challenge called pcalc that included this filter:
if (strlen($formula) >= 100 || preg_match_all('/[a-z\'"]+/i', $formula)) {
return '🤡 dont bite the hand that feeds you human 🤡';
}
try {
eval('$pcalc = ' . $formula . ';');