3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = 'ala bala portokala'; $words = explode(' ', $text); var_dump($words);
Output for 4.3.0 - 7.1.0
array(5) { [0]=> string(3) "ala" [1]=> string(0) "" [2]=> string(0) "" [3]=> string(4) "bala" [4]=> string(9) "portokala" }