3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getExpirationDate($months) { $date=strftime('%c'); //Get the current date $date=strtotime($date); $date = strtotime("+$months months", $date); //Add x number of months to the date $date = strtotime("+7 days", $date); //Add 7 days just to be sure $expired=date('Y-m-d H:i:s',$date); return $expired; } print_r(getExpirationDate(1)); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function strftime() is deprecated in /in/RuGCK on line 3 2014-05-12 17:44:47

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