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'); $hoystr = strtotime($hoy); $mañana = date('d-m-Y H:i:s',strtotime('+1 day', $hoystr)); echo $hoy; echo "\n"; echo $mañana; echo "\n"; echo date('H:i',$hoystr); echo "\n"; echo date('H:i',strtotime(date('H:i',$hoystr))-strtotime('09:00:00'));
based on XWBQ6
Output for 5.6.13 - 5.6.30, hhvm-3.10.1, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.2.0
07-10-2015 22:00:38 08-10-2015 22:00:38 22:00 10:00
Output for hhvm-3.11.1
07-10-2015 22:00:39 08-10-2015 22:00:39 22:00 10:00
Output for 5.4.0 - 5.6.12
07-10-2015 23:00:38 08-10-2015 23:00:38 23:00 11:00