3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = "This is a test"; $expl = explode(' ', $test); var_dump($expl);
based on AiRbC
Output for 4.3.0 - 7.1.0
array(4) { [0]=> string(4) "This" [1]=> string(2) "is" [2]=> string(1) "a" [3]=> string(4) "test" }