3v4l.org

run code in 300+ PHP versions simultaneously
<?php function safeEval($arg,$badwords) { if(stripos($arg,$badwords) !== true) { echo "it has been found"; return; } else return eval($arg); } $string = "echo 'Hello Kyle';"; $find = "Kyle"; safeEval($string,$find);

preferences:
39.1 ms | 402 KiB | 5 Q