3v4l.org

run code in 300+ PHP versions simultaneously
<?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]));
Output for git.master, git.master_jit, rfc.property-hooks
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

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.21 ms | 401 KiB | 8 Q