3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* every day amount increases by £19,000 */ function getAmount() { $increment = 19000; return getTodayValue($increment); } /* every users increases by 514 */ function getUsers() { $increment = 514; return getTodayValue($increment); } function getTodayValue($inc) { $startDay = "2013-11-01"; $endDay = "2013-12-31"; $now = date('Y-m-d'); $endDay = ($now <= $endDay) ? $now : $endDay; $diff = abs(strtotime($endDay) - strtotime($startDay)); $days = ($diff/(60*60*24))+1; return number_format($days*$inc); } echo(getUsers());
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
10,280