3v4l.org

run code in 300+ PHP versions simultaneously
<?php function safeEval($haystack,$needle) { str_ireplace($needle,"' '",$haystack); //$return = $haystack; return eval($haystack); //return; } $string = array("Hello","drop","Kyle").";"; $find = array("Drop"); safeEval($string,$find);

preferences:
39.45 ms | 402 KiB | 5 Q