3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $quote = "Success consists of going from failure to failure without loss of enthusiasm."; $result = explode("\n", wordwrap($quote, 27)); var_dump($result);
based on UWada
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(3) { [0]=> string(25) "Success consists of going" [1]=> string(23) "from failure to failure" [2]=> string(27) "without loss of enthusiasm." }