3v4l.org

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