3v4l.org

run code in 300+ PHP versions simultaneously
<?php //list($BonusLoginCount, $BonusLastLoginDay) = $DB->next_record(); $BonusLoginCount=0; $BonusLastLoginDay="2015-03-10"; //echo $BonusLoginCount; //echo "\r\n"; //echo $BonusLastLoginDay; $datetime1 = date_create($BonusLastLoginDay); $datetime2 = date_create(date("Y-m-d")); $interval = date_diff($datetime1, $datetime2); echo "differenz: ".$interval->format('%a days') //if ((date('His dmY')-date('His dmY', $BonusLastLoginDay))==1) { // gestern fand ein login statt //} ?>
Output for git.master, git.master_jit, rfc.property-hooks
differenz: 3 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:
56.59 ms | 401 KiB | 8 Q