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 />'.$i; $m++; } $r.=$curr; } echo $r;
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
hird option showing<br />20that you haven"t understood<br />48anything at<br />60all
Output for hhvm-3.10.0

Process exited with code 153.