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 5.4.0 - 5.4.14
Parse error: syntax error, unexpected 't' (T_STRING) in /in/VeZdn on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_STRING in /in/VeZdn on line 4
Process exited with code 255.