3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function safeEval($haystack,$needle,$return) { str_ireplace($needle,"' '",$haystack); return eval($haystack); //return; } $string = array("Hello","drop","Kyle"; $find = array("Drop"); safeEval($string,$find);
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected ';', expecting ')' in /in/DZYpm on line 9
Process exited with code 255.