3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(explode("$", 'hello$this$string has$some spaces'));
Output for 4.3.0 - 7.1.0
array(4) { [0]=> string(5) "hello" [1]=> string(4) "this" [2]=> string(10) "string has" [3]=> string(11) "some spaces" }