3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d\TH:i:sP'); $round = ( round ( time() / 60 ) * 60 ); echo date('h:i:s A', $round ); echo date('h:i:s A', time() );
Output for 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2013-07-26T12:48:33+02:0012:49:00 PM12:48:33 PM
Output for 4.3.0 - 5.1.2
2013-07-26T12:48:33P12:49:00 PM12:48:33 PM