3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getAmount() { $increment = 19000; return getTodayValue($increment); } 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)); echo($diff); } getAmount();
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function 2013-12-31() in /in/Yoilv:20 Stack trace: #0 /in/Yoilv(6): getTodayValue(19000) #1 /in/Yoilv(26): getAmount() #2 {main} thrown in /in/Yoilv on line 20
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function 2013-12-31() in /in/Yoilv on line 20
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: 2013-12-31() in /in/Yoilv on line 20
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: 2013-12-31() in /in/Yoilv on line 20
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: 2013-12-31() in /in/Yoilv on line 20