3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ts1 = '10-5-2013'; $ts2 = '20-5-2013'; var_dump(date('r', strtotime($ts1))); var_dump(date('r', strtotime($ts2)));
Output for 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(31) "Fri, 10 May 2013 00:00:00 +0200" string(31) "Mon, 20 May 2013 00:00:00 +0200"
Output for 5.1.0 - 5.1.2
string(31) "Thu, 01 Jan 1970 01:00:00 +0100" string(31) "Thu, 01 Jan 1970 01:00:00 +0100"
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.0.5
string(31) "Tue, 03 Nov 2015 00:00:00 +0100" string(31) "Mon, 03 Nov 2025 00:00:00 +0100"
Output for 4.3.0 - 4.3.10, 5.0.0 - 5.0.3
string(31) "Tue, 3 Nov 2015 00:00:00 +0100" string(31) "Mon, 3 Nov 2025 00:00:00 +0100"