3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mins = 1000; $minutes = $mins % 60; $hours = floor($mins / 60) % 9; $days = floor(($mins / 60) / 9); echo "Days: $days, Hours: $hours, Minutes: $minutes\n";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Days: 1, Hours: 7, Minutes: 40