3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $part = stristr('my home is my castle','is',true); $part2 = stristr('my home is my castle','is'); echo "This is my: $part \n"; echo "That is my: $part2 \n"; ?>
Output for 5.3.0 - 7.1.0
This is my: my home That is my: is my castle
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for stristr() in /in/CYMfD on line 2 This is my: That is my: is my castle