3v4l.org

run code in 300+ PHP versions simultaneously
<?php $blackFridayDate = new DateTime('27-11-2014 23:59:59'); $nowTimestamp = new DateTime('now'); $bfDays = $bfHours = $bfMinutes = $bfSeconds = 0; if ( $blackFridayDate > $nowTimestamp ) { $bfDays = $blackFridayDate->diff($nowTimestamp)->d; $bfHours = $blackFridayDate->diff($nowTimestamp)->h; $bfMinutes = $blackFridayDate->diff($nowTimestamp)->i; $bfSeconds = $blackFridayDate->diff($nowTimestamp)->s; var_dump($bfDays, $bfHours, $bfMinutes, $bfSeconds); }
Output for git.master, git.master_jit, rfc.property-hooks
int(14) int(5) int(41) int(10)

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