3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "T e s t a n d o"; $array = explode(" ",$s); var_dump($array);
based on X8SFB
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(8) { [0]=> string(1) "T" [1]=> string(1) "e" [2]=> string(1) "s" [3]=> string(1) "t" [4]=> string(1) "a" [5]=> string(1) "n" [6]=> string(1) "d" [7]=> string(1) "o" }