3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentCoeff = 4.5; define("CHEAT_START_TIME", 1409529600); // 2014-09-01 00:00:00 define("CHEAT_FINAL_TIME", 1410652800); // 2014-09-14 00:00:00 define("CHEAT_MIN_COUNTER", $currentCoeff); define("CHEAT_MAX_COUNTER", 7); $currentCoeff = (float) (time() - CHEAT_START_TIME - 604800) / ((CHEAT_FINAL_TIME + 604800 - CHEAT_START_TIME) / (CHEAT_MAX_COUNTER * 2 - CHEAT_MIN_COUNTER)) + CHEAT_MIN_COUNTER; echo $currentCoeff ;

preferences:
32.18 ms | 402 KiB | 5 Q