3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); var_dump( $d->format( 'm/d/Y H:i:s' ) ); $d = new DateTime( '24 hours ago'); var_dump( $d->format( 'm/d/Y H:i:s' ) );
Output for 5.6.0 - 5.6.30, hhvm-3.18.5, hhvm-3.22.0, 7.0.0 - 7.3.0rc3
string(19) "11/04/2017 07:55:58" string(19) "11/03/2017 07:55:58"
Output for hhvm-3.21.3
string(19) "11/04/2017 07:55:59" string(19) "11/03/2017 07:55:59"