3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "ab"; $s1 = "cAbfAbe"; $s2 = stristr($s1,$s); echo $s2; 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
AbfAbeAb cabfabe
Output for 4.4.5 - 4.4.9
AbfAbeAb Fatal error: Call to undefined function: str_ireplace() in /in/BTYVn on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
AbfAbeAb Fatal error: Call to undefined function: str_ireplace() in /in/BTYVn on line 9
Process exited with code 255.
Output for 4.3.1
AbfAbeAb Fatal error: Call to undefined function: str_ireplace() in /in/BTYVn on line 9
Output for 4.3.0
AbfAbeAb Fatal error: Call to undefined function: str_ireplace() in /in/F8cqC on line 9