3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = DateTime::createFromFormat('d M Y A', '1a Mar 201a PM'); var_dump($date, date_get_last_errors());
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(5) ["errors"]=> array(4) { [1]=> string(34) "A textual month could not be found" [3]=> string(22) "Unexpected data found." [10]=> string(29) "A meridian could not be found" [11]=> string(13) "Trailing data" } }

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:
72.96 ms | 402 KiB | 8 Q