3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(explode(",", "1,2,3")); var_dump(explode(",", "2")); var_dump(explode(",", ""));
based on RJinD
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(3) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "3" } array(1) { [0]=> string(1) "2" } array(1) { [0]=> string(0) "" }