3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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/eEo4Z on line 12
Process exited with code 255.