3v4l.org

run code in 300+ PHP versions simultaneously
<?php $calcul = (strtotime("today") - strtotime("12-09-2013")); echo strftime("%d-%m-%Y", $calcul) . '<br />'; echo strftime("%d-%m-%Y", strtotime("today")); $date1 = new DateTime("24-03-2007"); $date2 = new DateTime("26-03-2009"); $interval = $date1->diff($date2); echo "difference " . $interval->y . " years, " . $interval->m." months, ".$interval->d." days ";
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function strftime() is deprecated in /in/D6PUd on line 3 04-01-1970<br /> Deprecated: Function strftime() is deprecated in /in/D6PUd on line 6 15-09-2013difference 2 years, 0 months, 2 days

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:
48.05 ms | 401 KiB | 8 Q