3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "ab"; $s1 = "cAbfAbe"; echo substr(stristr($s1,$s),0,count($s)+1); echo "\n"; echo str_ireplace($s,$s,$s1);
Output for 5.0.0 - 7.1.0
Ab cabfabe
Output for 4.4.5 - 4.4.9
Ab Fatal error: Call to undefined function: str_ireplace() in /in/pjUG5 on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Ab Fatal error: Call to undefined function: str_ireplace() in /in/pjUG5 on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Ab Fatal error: Call to undefined function: str_ireplace() in /in/pjUG5 on line 7