3v4l.org

run code in 200+ 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 7.2.0
AbfAbe Warning: count(): Parameter must be an array or an object that implements Countable in /in/Ef2Si on line 7 Ab cabfabe
Output for 5.0.0 - 7.1.10
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