3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Trying to output 18000 $time = 12000; // milli-seconds $time = floor($time/1000); // get it into even seconds $remainder = $time % 6; if ((bool)$remainder) { $time = ($time - $remainder + 6)*1000; } else { $time = $time*1000; } echo $time;
based on 9Ueuk