3v4l.org

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

preferences:
35.28 ms | 402 KiB | 5 Q