3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('America/Montevideo'); $hoy = date("d/m/Y H:i:s"); $mañana = strtotime("+1 day", $hoy); echo $hoy; echo "<br>"; echo $mañana; /*if(isWeekend($hoy)){ echo "es finde"; }else{ echo "no es finde"; }*/ //$weekDay = date('w', strtotime($hoy)); function isWeekend($date) { $weekDay = date('w', strtotime($date)); return ($weekDay == 0 || $weekDay == 6); }
based on l2BpQ
Output for 5.6.13 - 7.2.0
Notice: A non well formed numeric value encountered in /in/8Pb1P on line 4 07/10/2015 15:58:30<br>86407
Output for 5.4.0 - 5.6.12
Notice: A non well formed numeric value encountered in /in/8Pb1P on line 4 07/10/2015 16:58:30<br>86407