3v4l.org

run code in 300+ PHP versions simultaneously
<?php function safeEval($haystack=array(),$needle=array()) { stripos($needle,$haystack); str_ireplace($needle,"' '",$haystack); //$return = $haystack; return eval($haystack); //return; } $string = array("Hello","drop","Kyle") $find = "Drop"; safeEval($string,$find);
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '$find' (T_VARIABLE) in /in/eEo4Z on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.25
Parse error: syntax error, unexpected T_VARIABLE in /in/mVP1e on line 12
Process exited with code 255.

preferences:
171.2 ms | 1395 KiB | 49 Q