3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'cats, e.g. Barsik, are funny. And it is true. So,'; $strN = ''; $found = $i = 0; do{ if($str[$i] == '.') $found++; $strN .= $str[$i]; $i++; }while($found != 3); echo $strN;
Output for 5.5.0 - 7.3.1
cats, e.g. Barsik, are funny.