3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'str i ng'; $chars = preg_split('/\s/', $str, 1); var_dump( $chars );
based on JXibB
Output for 5.3.20 - 7.2.0
array(1) { [0]=> string(8) "str i ng" }