3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = 1431045244; $la = $time - 1914400; $quotient = 1; $diff = $time - $la; $diff -= 1814400; //3 weeks if($diff >= 0){ $quotient -= 0.1; $quotient -= 0.05 * ($diff / 604800); } var_dump($quotient);
based on MLULa
Output for 4.3.0 - 7.2.0
float(0.8917328042328)