3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateDiff = $date1 - $date2; $fullDays = floor($dateDiff/(60*60*24)); $fullHours = floor(($dateDiff-($fullDays*60*60*24))/(60*60)); $fullMinutes = floor(($dateDiff-($fullDays*60*60*24)-($fullHours*60*60))/60); echo "Differernce is $fullDays days, $fullHours hours and $fullMinutes minutes.";
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $date1 in /in/qYZPT on line 3 Warning: Undefined variable $date2 in /in/qYZPT on line 3 Differernce is 0 days, 0 hours and 0 minutes.

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