3v4l.org

run code in 300+ PHP versions simultaneously
<?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.4.0 - 5.4.15
Parse error: syntax error, unexpected '";"' (T_CONSTANT_ENCAPSED_STRING) in /in/7XcIl on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.25
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/7XcIl on line 11
Process exited with code 255.

preferences:
178.18 ms | 1399 KiB | 49 Q