3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = "asdfaksjdhflkajsdhflkajshdflkja sldk jahlk sdfhal kjdsh lfkajs dhflkja shdlk askldj hafl ksjdhfl kajsdh flkasd hf"; $count = 0; for ($i=50; $i>0;$i--) { if ($x[$i] == " ") { $count = $i; break; } } echo substr($x,$count);
based on mXUgo
Output for 4.3.0 - 7.1.0
kjdsh lfkajs dhflkja shdlk askldj hafl ksjdhfl kajsdh flkasd hf