3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = "Wednesday, 22 Apr, 2015, 12:39 PM"; $dateArray = explode(',', $date); var_dump($dateArray);
based on ZmEZs
Output for 4.3.0 - 7.2.0
array(4) { [0]=> string(9) "Wednesday" [1]=> string(7) " 22 Apr" [2]=> string(5) " 2015" [3]=> string(9) " 12:39 PM" }