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); echo date('F d Y', strtotime($dateArray[1].' '.$dateArray[2])); echo date('h:i A', strtotime($dateArray[3]));
based on 2BUWW
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" } April 22 201512:39 PM