3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "ab"; $s1 = "cAbfAbe"; $s2 = $s1; do { $s2 = stristr($s2,$s); echo "$s2\n"; $s3 = substr($s2,0,count($s)+1); $s2 = substr($s2,count($s)); echo "$s2\n"; } while ($s2 != false);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
AbfAbe bfAbe Abe be