3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str= 'This is some example text , I want to print this variable in 3 lines, also.'; $x = '90'; $array = explode( "\n", wordwrap( $str, $x)); echo implode("<br>",$array); ?>

preferences:
21.33 ms | 402 KiB | 5 Q