3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(explode("*", "aaa*****bb*ccc**"));
based on 79jcT
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
array(9) { [0]=> string(3) "aaa" [1]=> string(0) "" [2]=> string(0) "" [3]=> string(0) "" [4]=> string(0) "" [5]=> string(2) "bb" [6]=> string(3) "ccc" [7]=> string(0) "" [8]=> string(0) "" }