3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (function_exists('date_default_timezone_set')) { date_default_timezone_set('UTC'); } var_dump( date('r', strtotime('02/28/2011 00:00')), date('r', strtotime('03/02/2011 00:00')) );
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(31) "Mon, 28 Feb 2011 00:00:00 +0000" string(31) "Wed, 02 Mar 2011 00:00:00 +0000"
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.0.5
string(31) "Mon, 28 Feb 2011 00:00:00 +0100" string(31) "Wed, 02 Mar 2011 00:00:00 +0100"
Output for 4.3.0 - 4.3.10, 5.0.0 - 5.0.3
string(31) "Mon, 28 Feb 2011 00:00:00 +0100" string(31) "Wed, 2 Mar 2011 00:00:00 +0100"