3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $currentTime = time(); $lastWednesday = strtotime("last wednesday"); $oneWeek = 7*24*60*60; echo $currentTime; echo $lastWednesday; echo $oneWeek; if ($currentTime > $lastWednesday + $oneWeek) { $overdue = true; } else { $overdue = false; } echo overdue;
based on CsOWU
Output for 7.2.0 - 7.3.0rc3
15154995951514934000604800 Warning: Use of undefined constant overdue - assumed 'overdue' (this will throw an Error in a future version of PHP) in /in/56rDH on line 14 overdue
Output for 5.6.0 - 5.6.21, 5.6.23 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.0.1, 7.0.3 - 7.1.20
15154995951514934000604800 Notice: Use of undefined constant overdue - assumed 'overdue' in /in/56rDH on line 14 overdue
Output for 5.6.22, 7.0.2
15154995961514934000604800 Notice: Use of undefined constant overdue - assumed 'overdue' in /in/56rDH on line 14 overdue
Output for hhvm-3.22.0
15154995951514934000604800 Notice: Use of undefined constant overdue - assumed 'overdue' in /in/56rDH on line -1 overdue