3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = "1 2 3,4,5 ,6,7"; var_dump(preg_split("/(\r\n|\n|\r|,)/", $data));
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
array(8) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "3" [3]=> string(1) "4" [4]=> string(1) "5" [5]=> string(0) "" [6]=> string(1) "6" [7]=> string(1) "7" }