3v4l.org

run code in 300+ PHP versions simultaneously
<?php $part = stristr('my home is my castle','is',true); $part2 = stristr('my home is my castle','is'); if($pos=stripos($h,$n)) $part3=substr($h,0,$pos); echo "This is my: $part\n"; echo "That is my: $part2\n"; echo "Also, this: $part3\n"; ?>

preferences:
27.41 ms | 402 KiB | 5 Q