3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function safeEval($haystack=array(),$needle=array()) { str_ireplace($needle=array(),"' '",$haystack); //$return = $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 '$find' (T_VARIABLE) in s9upD on line 11
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected T_VARIABLE in /in/9m5pT on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_VARIABLE in s9upD on line 11
Process exited with code 255.