3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $totalseconds = 5000; $totalminutes = $totalseconds / 60; $totalhours = $totalminutes / 60; $totaldays = $totalhours / 24; $totalweeks = $totaldays / 7; echo "{$totalweeks} weeks, or {$totaldays} days, or {$totalhours} hours, or {$totalhours} hours, or {$totalminutes} minutes";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0.0082671957671958 weeks, or 0.05787037037037 days, or 1.3888888888889 hours, or 1.3888888888889 hours, or 83.333333333333 minutes