3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'hello$this$string has$some spaces'; $explodedarray = explode('$', $string); var_dump($explodedarray);
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" }