3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s='third option showing that you haven"t understood anything at all'; $lenght = strlen($s); $limit =20; $r=''; $m=1; for($i=1;$i<$lenght;$i++){ $curr = $s[$i]; if ($i>=$limit*$m && $curr ==' '){ $curr = '<br />'; $m++; } $r.=$curr; } echo $r;
Output for 4.3.0 - 7.1.0
hird option showing<br />that you haven"t understood<br />anything at<br />all