3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'I\'m just so peachy, right now'; $spaced = preg_split('~\h+~', $string); print_r($spaced);
Output for 4.4.9, 5.2.4 - 7.2.6
Array ( [0] => I'm [1] => just [2] => so [3] => peachy, [4] => right [5] => now )
Output for 4.3.0 - 4.4.8, 5.0.0 - 5.2.3
Array ( [0] => I'm just so peac [1] => y, rig [2] => t now )