3v4l.org

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