3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dateValues = ["Sunday 21st October 2018", "Monday 1st October 2018"]; $dtLimit = new \DateTime("-14 days, midnight"); foreach ($dateValues as $dateValue) { $dtCompare = DateTime::createFromFormat("!l jS F Y", $dateValue); var_dump($dtCompare < $dtLimit); }
Output for rfc.property-hooks, git.master, git.master_jit
bool(false) bool(true)

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:
108.07 ms | 1444 KiB | 4 Q