3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str= 'A rough criminal gets into an argument over a girl in a dance hall. The argument turns into a fight, and the criminal is shot. As everyone else looks on,...'; $x = '90'; $array = explode( "\n", wordwrap( $str, $x)); echo implode("<br>",$array); ?>
based on qW5fVh
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
A rough criminal gets into an argument over a girl in a dance hall. The argument turns<br>into a fight, and the criminal is shot. As everyone else looks on,...